Skip to content

Rust

These guides give instructions to configure a production Rust project. They show how to control changes and build releases. They show how to record what a release contains. They also give the procedure for security incidents.

Compare these procedures with the legal, contractual, and regulatory requirements for your organization. US federal buyers commonly use the NIST Secure Software Development Framework (SSDF) to examine supplier practices. The EU Cyber Resilience Act (CRA) specifies requirements for commercial products on the EU market. Use these guides as examples. Do a compliance assessment for the applicable requirements.

Contents

Application guides

Agent skills

You can install these guides as skills.sh agent skills:

Terminal window
# Install all skills interactively
npx skills add kerryhatcher/rusty-dev
# Or install specific skills
npx skills add kerryhatcher/rusty-dev --skill rust-dev --skill rust-embedded
Skill Scope
rust-dev General production Rust setup, lints, MSRV, testing, supply-chain security, CI/CD, and releases
rust-cli-tui CLI and TUI applications (clap, ratatui, crossterm, cargo-dist)
rust-desktop-gui Desktop GUI applications (Tauri v2, Iced, egui, Slint, GPUI, AccessKit, code signing)
rust-web-ui-wasm Web UI / WebAssembly applications (Leptos, Dioxus, Yew, wasm-bindgen, CSP)
rust-web-api Web API services (axum, tower-http, sqlx, RFC 9457, cargo-chef containers)
rust-embedded Embedded firmware (embedded-hal, esp-hal, avr-hal, Embassy, RTIC, probe-rs, defmt)

Minimum release requirements

Before you give a release to an organization, make sure that the project has these controls.

  • Publish a policy that identifies the supported versions.
  • Give a private channel for vulnerability reports.
  • Enable branch protection for the default branch.
  • Review the inputs that continuous integration (CI) uses.
  • Pin GitHub Actions to full commit SHAs.
  • Commit the lockfile.
  • Set rules for dependencies, licenses, advisories, and minimum publication age.
  • If you publish to crates.io, use OIDC Trusted Publishing.

Give these files and instructions with the release.

  • Publish a software bill of materials (SBOM) with the minimum elements that CISA specifies for 2026.
  • Publish build provenance attestations.
  • Publish checksums.
  • Give adopters the commands to check the release files.

For a list of the records for each control, refer to the enterprise readiness guide.

Source documents