rust-best-practices
Pass
Audited by Gen Agent Trust Hub on Oct 13, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill provides detailed technical guidance for Rust engineering, focusing on idiomatic code, performance, and safety. All recommended patterns and code examples align with industry best practices for the Rust language.- [SAFE]: Dependency management is handled responsibly. While the skill authorizes 'bon' and 'statum' by default, it explicitly instructs the agent to check the repository's 'cargo-deny' configuration for bans and forbids the agent from weakening these rules to force adoption.
- [SAFE]: The instructions include safety guardrails, explicitly stating that default authorization of specific libraries does not waive security constraints, license requirements, or public API stability.
- [SAFE]: Code examples for sensitive operations, such as thread safety and environment variable handling, demonstrate secure and standard Rust patterns. For example, it correctly advises collecting environment variables before sharing them across thread boundaries to avoid safety issues.
- [SAFE]: Guidance on code generation (templates and proc-macros) emphasizes correctness and warns against unsafe practices like using text-template engines for procedural macro expansion, which helps prevent accidental code injection vulnerabilities in generated artifacts.
Audit Metadata