cargo: disallow references to bootstrap cargo, rustc

cargo recently accidentally gained a runtime dependency on
cargo-bootstrap, we don't want to let that happen again.
This commit is contained in:
Lily Ballard
2026-04-14 21:39:14 -07:00
parent 8eb3c82575
commit 126bd3b578

View File

@@ -109,6 +109,13 @@ rustPlatform.buildRustPackage.override
runHook postInstallCheck
'';
# Make sure our build rustc/cargo never make it into our runtime closure
disallowedReferences = [
rustPlatform.rust.cargo
rustPlatform.rust.rustc
rustPlatform.rust.rustc.unwrapped
];
meta = {
homepage = "https://crates.io";
description = "Downloads your Rust project's dependencies and builds your project";