diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..65bd85a --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,9 @@ +{ + "recommendations": [ + "asciidoctor.asciidoctor-vscode", + "dprint.dprint", + "rust-lang.rust-analyzer", + "seaql.firedbg-rust", + "serayuzgur.crates" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 2217ddd..8f3ec32 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,7 @@ { - "conventionalCommits.scopes": ["deps", "config"] + "conventionalCommits.scopes": ["deps", "config"], + "editor.defaultFormatter": "dprint.dprint", + "[dockerfile]": { + "editor.defaultFormatter": "dprint.dprint" + } } diff --git a/build.rs b/build.rs index 311ef9a..493c7aa 100644 --- a/build.rs +++ b/build.rs @@ -10,7 +10,8 @@ use std::{ use clap::CommandFactory; use clap_mangen::Man; -use cli::Args; + +use crate::cli::Args; fn main() -> io::Result<()> { shadow_rs::new().unwrap(); diff --git a/dprint.json b/dprint.json new file mode 100644 index 0000000..bc9fcf4 --- /dev/null +++ b/dprint.json @@ -0,0 +1,28 @@ +{ + "typescript": {}, + "json": {}, + "markdown": {}, + "toml": { + "indentWidth": 4 + }, + "dockerfile": {}, + "biome": {}, + "exec": { + "commands": [ + { + "command": "rustfmt +nightly --unstable-features --edition 2021", + "exts": ["rs"] + } + ] + }, + "excludes": ["**/node_modules", "**/*-lock.json", "target"], + "plugins": [ + "https://plugins.dprint.dev/typescript-0.88.7.wasm", + "https://plugins.dprint.dev/json-0.19.1.wasm", + "https://plugins.dprint.dev/markdown-0.16.3.wasm", + "https://plugins.dprint.dev/toml-0.5.4.wasm", + "https://plugins.dprint.dev/dockerfile-0.3.0.wasm", + "https://plugins.dprint.dev/biome-0.2.2.wasm", + "https://plugins.dprint.dev/exec-0.4.4.json@c207bf9b9a4ee1f0ecb75c594f774924baf62e8e53a2ce9d873816a408cecbf7" + ] +}