forked from mirrors/nixpkgs
29a8575e3d
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. |
||
---|---|---|
.. | ||
test | ||
build-crate.nix | ||
configure-crate.nix | ||
default.nix | ||
helpers.nix | ||
install-crate.nix | ||
lib.sh | ||
log.nix |