Skip to content

chore: harden build configuration and dev tooling#9

Merged
ankarhem merged 2 commits intomainfrom
chore/build-config-hardening
Apr 27, 2026
Merged

chore: harden build configuration and dev tooling#9
ankarhem merged 2 commits intomainfrom
chore/build-config-hardening

Conversation

@ankarhem
Copy link
Copy Markdown
Member

Summary

Build and configuration hardening pass based on codebase review:

  • Single source of truth for version: flake.nix now reads the version from Cargo.toml dynamically, eliminating drift risk
  • MSRV declared: Added rust-version = "1.85" (minimum for edition 2024)
  • Flake cleanup: Removed unused openssl, pkg-config deps and stale nodejs overlay — reqwest uses rustls, not OpenSSL
  • Faster test runs: Added cargo-nextest to dev shell (2-5x faster than cargo test)
  • Supply-chain hardening: Added [sources] section to deny.toml denying unknown registries and git sources
  • Explicit formatting config: Added .rustfmt.toml with edition 2024 settings
  • Extended .gitignore: Added coverage, profiling, and backup file patterns

All 205 tests pass. Nix build succeeds.

- Derive version in flake.nix from Cargo.toml (single source of truth)
- Add rust-version = "1.85" to Cargo.toml (MSRV for edition 2024)
- Remove unused openssl, pkg-config, and nodejs overlay from flake.nix
- Add cargo-nextest to dev shell for faster test runs
- Add [sources] section to deny.toml (deny unknown registries/git)
- Add .rustfmt.toml with explicit edition 2024 settings
- Extend .gitignore with coverage, profiling, and backup entries
Comment thread Cargo.toml Outdated
Comment thread .rustfmt.toml
@ankarhem ankarhem merged commit f2891c7 into main Apr 27, 2026
7 checks passed
@ankarhem ankarhem deleted the chore/build-config-hardening branch April 27, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant