Skip to content

feat(nix): align Rust toolchain with rust-toolchain.toml in flake#1798

Merged
fslongjin merged 1 commit intoDragonOS-Community:masterfrom
Vitus213:feat/nix-rust-toolchain-align
Feb 28, 2026
Merged

feat(nix): align Rust toolchain with rust-toolchain.toml in flake#1798
fslongjin merged 1 commit intoDragonOS-Community:masterfrom
Vitus213:feat/nix-rust-toolchain-align

Conversation

@Vitus213
Copy link
Copy Markdown
Contributor

  • derive Rust components from kernel/rust-toolchain.toml
  • auto-add required components (cargo/rustc/rust-std) when missing
  • emit trace warning when required components are absent in toml
  • prioritize ${rust-toolchain}/bin in nix run yolo and devShell shellHook
  • document fixed-output sha256 update workflow
  • keep fixed-output hash strategy for reproducibility

This avoids cargo/rustc drift caused by PATH/toolchain mixing across Nix entrypoints.

- derive Rust components from kernel/rust-toolchain.toml
- auto-add required components (cargo/rustc/rust-std) when missing
- emit trace warning when required components are absent in toml
- prioritize ${rust-toolchain}/bin in nix run yolo and devShell shellHook
- document fixed-output sha256 update workflow
- keep fixed-output hash strategy for reproducibility

This avoids cargo/rustc drift caused by PATH/toolchain mixing across Nix entrypoints.
@Vitus213 Vitus213 requested a review from fslongjin February 26, 2026 07:50
@github-actions github-actions Bot added the ambiguous The title of PR/issue doesn't match the format label Feb 26, 2026
@Vitus213 Vitus213 changed the title nix: align Rust toolchain with rust-toolchain.toml in flake feat(nix): align Rust toolchain with rust-toolchain.toml in flake Feb 26, 2026
@github-actions github-actions Bot added enhancement New feature or request and removed ambiguous The title of PR/issue doesn't match the format labels Feb 26, 2026
@fslongjin fslongjin merged commit f14b39e into DragonOS-Community:master Feb 28, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants