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:
Adam Joseph 2023-01-15 00:11:55 -08:00 committed by Yt
parent 8c9384373d
commit 42c8e4dd18

View file

@ -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