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

15 lines
416 B
Markdown

# Packaging Rust Applications with Nix
See [codex](./codex/package.nix) for an example.
## Updating an Existing Rust Package
Besides the general update steps, also update the `cargoHash`:
```bash
# 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`.