mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
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. |
||
---|---|---|
.. | ||
build-rust-crate | ||
patch-registry-deps | ||
cargo-vendor-normalise.py | ||
carnix.nix | ||
crates-io.nix | ||
default-crate-overrides.nix | ||
default.nix | ||
fetchcargo-default-config.toml | ||
fetchcargo.nix | ||
fetchcrate.nix |