1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/build-support/rust/build-rust-crate
Peter Kolloch baa3d6f43b
buildRustCrate: Make CARGO_MANIFEST_DIR absolute
While it is not obvious from the source, cargo sets CARGO_MANIFEST_DIR to an absolute directory. This let to a build problem with the popular "tera" crate using the "pest" crate.

## Cargo details

The variable is set here:

f7c91ba622/src/cargo/core/compiler/compilation.rs (L229)

and computed from the `manifest_path`:

f7c91ba622/src/cargo/core/package.rs (L163)

The manifest path is also exported via `cargo metadata` where you can see that it is absolute.
2019-03-03 12:02:26 +01:00
..
test buildRustCrate: added some edge cases with binaries 2018-09-13 22:00:29 +02:00
build-crate.nix buildRustCrate: pass extraRustcOpts to configure crate 2019-02-18 00:10:36 +01:00
configure-crate.nix buildRustCrate: Make CARGO_MANIFEST_DIR absolute 2019-03-03 12:02:26 +01:00
default.nix buildRustCrate: adding the description field 2019-02-25 15:22:03 +00:00
helpers.nix Fixing "include" 2018-11-22 11:40:03 +00:00
install-crate.nix Rust build-support: fixing a compilation error in some crates (such as proc-macro2) 2018-11-16 12:12:59 +00:00