build-rust-crate: dontStrip=!release
Without this PR, unlike `RUST_LIB_BACKTRACE=1 cargo run` you won't get line numbers in backtraces from binaries built with: ``` nix build -f Cargo.nix --arg release false ``` This PR fixes that.
This commit is contained in:
parent
8c9384373d
commit
42c8e4dd18
1 changed files with 1 additions and 0 deletions
|
@ -352,6 +352,7 @@ crate_: lib.makeOverridable
|
|||
metadata hasCrateBin crateBin verbose colors
|
||||
extraRustcOpts buildTests codegenUnits;
|
||||
};
|
||||
dontStrip = !release;
|
||||
installPhase = installCrate crateName metadata buildTests;
|
||||
|
||||
# depending on the test setting we are either producing something with bins
|
||||
|
|
Loading…
Reference in a new issue