diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000000..61ed5d475f --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "rust-lang.rust-analyzer" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000..91c33bc2c6 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "rust-analyzer.check.extraArgs": [ + "--all-features" + ], + "rust-analyzer.check.command": "clippy", +} \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ebb265912f..0e116b468d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,6 +101,8 @@ pre-commit run --all-files --show-diff-on-failure # Rust and Python formatting, These checks will run on GitHub Actions when you open your pull request, but running them locally will save you time and expedite the merge process. +If you're using VS Code, you can also install the recommended [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) extension to get these checks while editing. + Note that many code changes also require updating the snapshot tests, which is done interactively after running `cargo test` like so: