diff --git a/justfile b/justfile new file mode 100644 index 0000000..dec3bb1 --- /dev/null +++ b/justfile @@ -0,0 +1,32 @@ +# Lists the available actions +default: + @just --list + +# Remove generated files +clean: + cargo clean + +# Check code syntax +check: + cargo check + +# Generate API docs +docs: + cargo doc + +# Check code style +lint: + cargo clippy + +# Format the code +fmt: + cargo +nightly fmt + +# Automatically fix some code syntax/style issues +fix: + cargo fix --allow-dirty --allow-staged + just fmt + +# Run the normal tests +test: + cargo test \ No newline at end of file diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..c9918d7 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,7 @@ +unstable_features = true +format_code_in_doc_comments = true +format_macro_matchers = true +format_strings = false +imports_granularity = "Module" +group_imports = "StdExternalCrate" +use_field_init_shorthand = true