You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cargo test --features test-private --test chat_commands_tests # Commands tests that need test-private
115
+
cargo nextest run --all-features --profile ci # Full suite (preferred before commit)
116
+
cargo test# Full suite fallback if nextest not installed
128
117
cargo build # Standalone Rust build when not using npm wrapper
129
118
```
130
119
131
-
**Cargo hygiene:** Before `cargo check`, `cargo test`, `cargo build`, or npm scripts that invoke the Tauri/Rust build (`tauri dev`, `tauri build`), run `cargo clean` inside `src-tauri/` so stale `target/` artifacts do not accumulate across iterations.
120
+
**Optional P2 tooling** (see [`docs/guides/rust-build-test-optimization.md`](docs/guides/rust-build-test-optimization.md) §5):
121
+
122
+
-`cargo install cargo-nextest --locked` — parallel test runner; config in `src-tauri/.config/nextest.toml`
123
+
-`cargo install sccache` — compile cache; then uncomment `rustc-wrapper = "sccache"` in `src-tauri/.cargo/config.toml`
124
+
- Build tuning defaults live in `src-tauri/.cargo/config.toml` (`dev` dependency `opt-level`, optional `sccache` / linker)
125
+
126
+
**Cargo hygiene:** Do **not** run `cargo clean` before routine `cargo check`, `cargo test`, `cargo build`, `tauri dev`, or `tauri build` — incremental compile is intentional and much faster. Run `cargo clean` in `src-tauri/` only when troubleshooting: link errors, metadata mismatch, unexplained failures after a branch switch, or Rust toolchain / major dependency upgrades. See [`docs/guides/rust-build-test-optimization.md`](docs/guides/rust-build-test-optimization.md).
cargo test --features test-private --test chat_commands_tests # Commands tests that need test-private
115
+
cargo nextest run --all-features --profile ci # Full suite (preferred before commit)
116
+
cargo test# Full suite fallback if nextest not installed
128
117
cargo build # Standalone Rust build when not using npm wrapper
129
118
```
130
119
131
-
**Cargo hygiene:** Before `cargo check`, `cargo test`, `cargo build`, or npm scripts that invoke the Tauri/Rust build (`tauri dev`, `tauri build`), run `cargo clean` inside `src-tauri/` so stale `target/` artifacts do not accumulate across iterations.
120
+
**Optional P2 tooling** (see [`docs/guides/rust-build-test-optimization.md`](docs/guides/rust-build-test-optimization.md) §5):
121
+
122
+
-`cargo install cargo-nextest --locked` — parallel test runner; config in `src-tauri/.config/nextest.toml`
123
+
-`cargo install sccache` — compile cache; then uncomment `rustc-wrapper = "sccache"` in `src-tauri/.cargo/config.toml`
124
+
- Build tuning defaults live in `src-tauri/.cargo/config.toml` (`dev` dependency `opt-level`, optional `sccache` / linker)
125
+
126
+
**Cargo hygiene:** Do **not** run `cargo clean` before routine `cargo check`, `cargo test`, `cargo build`, `tauri dev`, or `tauri build` — incremental compile is intentional and much faster. Run `cargo clean` in `src-tauri/` only when troubleshooting: link errors, metadata mismatch, unexplained failures after a branch switch, or Rust toolchain / major dependency upgrades. See [`docs/guides/rust-build-test-optimization.md`](docs/guides/rust-build-test-optimization.md).
0 commit comments