Files
gh-breakds-claude-bds-bds-dev/skills/nix-packaging/rust/rust.md
2025-11-29 18:02:30 +08:00

416 B

Packaging Rust Applications with Nix

See codex for an example.

Updating an Existing Rust Package

Besides the general update steps, also update the cargoHash:

# Set cargoHash = ""; then run nix build
# Nix will fail and show: "got: sha256-XXXXX"

If Cargo.toml dependencies changed, the build will automatically fetch new dependencies after you update the cargoHash.