Files
james.maesandClaude Opus 5.5 d6fedc762b feat(coding): adopt Kingsrook coding standard with IDE and CLI configs
Cross-language coding standard (K22-CODE-01..26) adopted from Kingsrook's QQQ
CODE_STYLE.md, with profiles for C#/.NET, Java, TypeScript, Python, Rust, Go,
Swift, Shell/PowerShell, and Terraform, and the files each IDE and tool imports:
IntelliJ scheme, copyright profile and live templates, Checkstyle, Eclipse
formatter, .editorconfig, Directory.Build.props, ESLint Stylistic, ruff,
rustfmt/clippy/cargo-deny, golangci-lint, swift-format/SwiftLint, ShellCheck,
PSScriptAnalyzer, TFLint, sqlfluff, VS Code. Kingsrook files keep their
Apache-2.0 notice (NOTICE).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: James Maes <james@kof22.com>
2026-10-09 07:53:21 -05:00
..

Rust

Implements the Rust profile.

File Copy to Purpose
rustfmt.toml repository root rustfmt: 3-space indent (tab_spaces), Unix newlines, stable options only
clippy.toml repository root clippy thresholds, MSRV, disallowed print/debug macros
Cargo.lints.toml merge into Cargo.toml ([lints] or [workspace.lints]) Lint levels: unsafe_code forbidden, pedantic warnings, no unwrap/print
deny.toml repository root cargo-deny: advisories, licenses, bans, sources

Use

cargo fmt                                                     # layout
cargo clippy --all-targets --all-features -- -D warnings      # lint
cargo install cargo-deny --locked && cargo deny check         # supply chain

CI runs cargo fmt --check, the clippy command with --locked, cargo test --locked, and cargo deny check.

IDEs

  • VS Code: rust-analyzer formats with rustfmt and checks with clippy; see ../vscode.
  • RustRover / IntelliJ Rust: Settings → Languages & Frameworks → Rust → Rustfmt → Use rustfmt instead of the built-in formatter and run on save; External Linters → Clippy.

Verified

rustfmt 1.9.0 (stable): tab_spaces = 3 reformats a new crate to 3-space indentation; brace_style = "AlwaysNextLine" is rejected on stable ("only available in nightly"), which is why braces deviate (K22-CODE-RS-02). cargo clippy -- -D warnings runs clean with clippy.toml. cargo-deny was not run here.