diff --git a/justfile b/justfile index 2b75bd1..61ed980 100644 --- a/justfile +++ b/justfile @@ -1,10 +1,14 @@ fmt: - cargo fmt --all -- --config format_code_in_doc_comments=true + rustup install nightly-2024-01-11 + rustup component add rustfmt --toolchain nightly-2024-01-11 + cargo +nightly-2024-01-11 fmt --all -- --config format_code_in_doc_comments=true check: fmt check-crates check-crates-msrv check-bindings check-docs check-fmt: - cargo fmt --all -- --config format_code_in_doc_comments=true --check + rustup install nightly-2024-01-11 + rustup component add rustfmt --toolchain nightly-2024-01-11 + cargo +nightly-2024-01-11 fmt --all -- --config format_code_in_doc_comments=true --check check-bindings: @bash contrib/scripts/check-bindings.sh diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..b9ce427 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,9 @@ +tab_spaces = 4 +newline_style = "Auto" +reorder_imports = true +reorder_modules = true +indent_style = "Block" +normalize_comments = true +imports_granularity = "Module" +reorder_impl_items = true +group_imports = "StdExternalCrate" \ No newline at end of file