nixpkgs/pkgs/build-support/rust/build-rust-crate
Mateusz Kowalczyk 233205c464
rustBuildCrate: properly handle cargo env pragmas with spaces
There are two problems: first that we end up splitting on spaces in the
loop. Even when that is fixed, we still would split on spaces in the
`export` inside the loop. We need to guard against both.

Fixes #199298

Confirmed that it fixes the case mentioned in the ticket:

```console
[nix-develop]$ $(nix-build -I nixpkgs=/home/shana/programming/nixpkgs Cargo.nix -A rootCrate.build  --no-out-link)/bin/nix-rustc-env-escape-repro
Expecting three words, got: first second third
```

I think this is going to cause a rebuild of every Rust package even if
they were unaffected, not much we can do here.
2022-11-03 14:49:24 +09:00
..
test tests.buildRustCrate: add rcgen test 2022-06-14 20:09:33 -04:00
build-crate.nix buildRustCrate: Do not compile binaries if all the requiredFeatures aren't enabled. 2022-08-23 13:09:33 +02:00
configure-crate.nix rustBuildCrate: properly handle cargo env pragmas with spaces 2022-11-03 14:49:24 +09:00
default.nix buildRustCrate: Add support for standard library deps 2022-08-01 15:34:49 -04:00
helpers.nix
install-crate.nix
lib.sh buildRustCrate: pass link flags when building libraries 2022-06-14 20:09:33 -04:00
log.nix