3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/build-support/rust/build-rust-crate
Andreas Rammhold 29a8575e3d
buildRustCrate: remove one of the odd library filename cases
It used to be the case (ref missing) that cargo did treat
`src/$libName.rs` as an alternative to `src/lib.rs` when the latter
wasn't present. Recently I failed to reproduce that with vanilla cargo
and it started to cause pain with some crates of the form:

some_crate/
 `- src
   `- main.rs
   `- some_crate.rs

We would build `src/some_crate.rs` and thing it is a library while that
might not be the actual case. This crate is a valid `bin` crate not a
`lib` crate as far as I can tell from the samples I took.

I removed support for the previously required heuristic and commented
out the test cases in case we will need them again. We could crawl in
the Git history but chances are that the next person looking into this
doesn't know about the history.
2020-01-16 13:24:13 +01:00
..
test buildRustCrate: remove one of the odd library filename cases 2020-01-16 13:24:13 +01:00
build-crate.nix buildRustCrate: remove one of the odd library filename cases 2020-01-16 13:24:13 +01:00
configure-crate.nix buildRustCrate: rename makeDeps function to mkRustcDepArgs 2019-12-11 23:23:55 +01:00
default.nix buildRustCrate: slight "rewording" and reformatting 2020-01-07 11:57:34 +01:00
helpers.nix buildRustCrate: fixup usage of builtins.filterSource 2020-01-07 00:49:48 +01:00
install-crate.nix buildRustCrate: add buildTests flag to tell rustc to build tests instead of binaries 2020-01-07 11:57:34 +01:00
lib.sh buildRustCrate: add buildTests flag to tell rustc to build tests instead of binaries 2020-01-07 11:57:34 +01:00
log.nix buildRustCrate: move the color loggign & remove some runtime checks 2019-12-11 22:35:44 +01:00