# Production Rust Project Setup > 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)](https://doi.org/10.6028/NIST.SP.800-218) to examine supplier practices. The [EU Cyber Resilience Act (CRA)](https://eur-lex.europa.eu/eli/reg/2024/2847/oj) specifies requirements for commercial products on the EU market. Use these guides as examples. Do a compliance assessment for the applicable requirements. This index links to the original Markdown files in the repository root. The guides show how to configure controls and give the records for each control. Read the overview first. Then select the guide for your task. The guides use relative Markdown links in the same directory as this index. ## Overview - [Overview (README.md)](https://www.kerryhatcher.com/rust-dev/README.md): Guide contents, minimum release requirements, and source documents. ## Guides - [Enterprise readiness guide](https://www.kerryhatcher.com/rust-dev/enterprise-readiness.md): Give adopters records that show how the project controls risks. The records must identify the persons responsible for each control. They must give instructions to examine a release and manage incidents. Covers: Project controls, owners, and records for adopters. - [Secure development lifecycle](https://www.kerryhatcher.com/rust-dev/secure-development.md): Use security controls from design through release and maintenance. Keep design decisions, test results, and release records. This guide uses the **NIST SSDF (SP 800-218)** and the **ANSSI Secure Rust Guidelines** for Edition 2024 Rust projects. Covers: Threat models, secure defaults, Rust safety checks, and SSDF. - [Project configuration](https://www.kerryhatcher.com/rust-dev/scaffolding.md): `Cargo.toml` records the crate metadata, Rust edition, lints, and requirements for dependencies. Set these values when you create the crate. Covers: Cargo metadata, Rust edition, toolchain, and lints. - [Code quality checks](https://www.kerryhatcher.com/rust-dev/code-quality.md): Do the code quality checks before you merge changes into `main`. Use the `just` recipes locally. Continuous integration (CI) does the same checks and uses `--locked` where applicable. Covers: Format, lint, documentation, and API compatibility checks. - [Testing strategy](https://www.kerryhatcher.com/rust-dev/testing.md): Use different types of tests to find regressions, panics, and changes in behavior before a release. Line coverage shows which code the tests execute. Covers: Test types, test tools, and tests for `unsafe` code. - [Supply chain security](https://www.kerryhatcher.com/rust-dev/supply-chain.md): A direct or transitive crate can add a vulnerability or a malicious build script. It can also add a dependency with no maintainer or copyleft license obligations. Use `cargo-deny`, `cargo-vet`, and `cargo-audit` to check dependencies. Set a minimum publication age to give reviewers time to identify a malicious release. Covers: Dependency checks with `cargo-deny`, `cargo-vet`, and `cargo-audit`. - [Security scanning](https://www.kerryhatcher.com/rust-dev/security-scanning.md): Scan the repository for vulnerabilities and secrets. Check the workflows for security defects. Record the use of `unsafe` code in the dependency tree. Covers: Scans for secrets, vulnerabilities, workflow errors, and `unsafe` code. - [Minimum supported Rust version](https://www.kerryhatcher.com/rust-dev/msrv.md): The minimum supported Rust version (MSRV) is the earliest toolchain on which the crate builds and gives satisfactory test results. Cargo Resolver v3 uses the MSRV to select dependency versions. A continuous integration (CI) job does the checks on that toolchain. Covers: Version policy, Cargo Resolver v3, and CI checks. - [CI/CD pipeline](https://www.kerryhatcher.com/rust-dev/ci-cd.md): The continuous integration (CI) pipeline checks quality, compatibility, and security for each change. It starts jobs on each target operating system. Jobs have read-only permissions by default. The workflow uses full commit SHAs for GitHub Actions. Covers: GitHub Actions jobs, test platforms, and action versions. - [Release automation](https://www.kerryhatcher.com/rust-dev/releases.md): Use a protected continuous integration (CI) workflow to create each release tag, crates.io package, and binary. The workflow calculates the version, generates the changelog, and updates the lockfile. It builds binaries, publishes the crate, and generates an SBOM and provenance attestations. A person must review the release pull request before the merge. Covers: Release pull requests, Trusted Publishing, and release verification. - [Dependency management](https://www.kerryhatcher.com/rust-dev/dependencies.md): Each dependency can add a security risk. Use Dependabot to group updates and set a minimum publication age. Use Cargo to select versions that support the minimum supported Rust version (MSRV). Enable only the necessary features. Covers: Dependabot, minimum publication age, and the lockfile. - [Local development](https://www.kerryhatcher.com/rust-dev/local-dev.md): Contributors and coding agents can install prebuilt tools after they clone the repository. The local tools do the same checks as continuous integration (CI). Covers: Tool installation, `justfile`, and contributor instructions. - [Security policy](https://www.kerryhatcher.com/rust-dev/security-policy.md): Use `SECURITY.md` to give researchers a private channel for vulnerability reports. State the response times and supported versions. Give the procedure for coordinated disclosure with RustSec. Covers: Private vulnerability reports, response times, and RustSec advisories. - [Project governance](https://www.kerryhatcher.com/rust-dev/governance.md): Governance documents identify who makes decisions and who has access to project resources. They give the procedures for community standards and for changes to maintainer roles. Covers: Roles, licenses, repository rules, and the code of conduct. ## Application guides - [CLI and TUI applications](https://www.kerryhatcher.com/rust-dev/cli-tui.md): Command-line interface (CLI) and terminal user interface (TUI) programs give users fast, scriptable tools that operate in a terminal. Configure argument parsing, output streams, terminal state recovery, tests, and release packages before you publish a binary. Covers: Argument parsing, terminal recovery, output streams, and binary distribution. - [Desktop GUI applications](https://www.kerryhatcher.com/rust-dev/desktop-gui.md): Desktop graphical user interface (GUI) applications in Rust use either a system webview or a native GPU renderer. Select a framework that matches your platform targets, licensing terms, and accessibility requirements. Covers: Framework selection, thread safety, security capabilities, accessibility, and code signing. - [Web UI (WebAssembly) applications](https://www.kerryhatcher.com/rust-dev/web-ui-wasm.md): Rust compiles to WebAssembly (WASM) so you can build browser user interfaces with type safety and shared domain crates. Configure the framework, build toolchain, binary size limits, Content Security Policy (CSP), and browser tests before deployment. Covers: WASM frameworks, bundle optimization, Content Security Policy, and browser tests. - [Web API services](https://www.kerryhatcher.com/rust-dev/web-api.md): Production Rust web APIs combine compile-time type safety with predictable latency and low memory use. Configure the HTTP framework, middleware limits, structured errors, database queries, telemetry, graceful shutdown, and container builds before deployment. Covers: HTTP frameworks, middleware limits, RFC 9457 errors, SQLx offline builds, and containers. - [Embedded applications](https://www.kerryhatcher.com/rust-dev/embedded.md): Embedded Rust firmware operates on resource-constrained microcontrollers without a host operating system. Select the hardware abstraction layer (HAL), concurrency model, memory safeguards, hardware security controls, and test strategy before you ship firmware to devices. Covers: `no_std` HALs, ESP32 and AVR targets, Embassy and RTIC, memory safety, and firmware testing. ## Optional - [Full text](https://www.kerryhatcher.com/rust-dev/llms-full.txt): All guides in one Markdown file. - [Source repository](https://github.com/kerryhatcher/rusty-dev): Git history, issues, and pull requests for these documents.