From cbff5a60ca8ef00a6b967183637314a8273fade3 Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Mon, 1 Sep 2025 11:59:28 +0200 Subject: [PATCH] meta(cursor): Tell Cursor to `cargo fmt` And also, make some other minor corrections to the development guidelines. --- .cursor/rules/rust-development.mdc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.cursor/rules/rust-development.mdc b/.cursor/rules/rust-development.mdc index e6dae94567..a25740e32f 100644 --- a/.cursor/rules/rust-development.mdc +++ b/.cursor/rules/rust-development.mdc @@ -29,15 +29,18 @@ alwaysApply: false ## Development Commands +Always run `cargo fmt --all`, prior to committing any Rust code, to ensure consistent formatting and to avoid CI failures. + +Some other commands you may find useful: + ```bash # Essential Rust workflow - run against the whole workspace cargo build --workspace cargo test --workspace cargo clippy --workspace -cargo fmt # Local testing -./bin/sentry-cli --help +cargo run -- --help ``` ## Error Handling Patterns