-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running cargo build
checks the dev-dependencies
#1070
Comments
Cargo downloads all dependencies when generating a lockfile to perform full resolution. Otherwise your For now though, this is working as intended, so closing. |
@alexcrichton, could you please reconsider this issue? I found an inconsistency of the [dev-dependencies] tag. Firstly, if I build a crate (e.g., According to http://doc.crates.io/specifying-dependencies.html,
Therefore, dev-dependencies should not be considered in This is an issue since I found that some crates like |
For example:
Note that there is no IMO, [dev-dependencies] should be only resolved when building tests, examples and benches. This will ensure the consistency of the cargo's behaviors and documentation. |
@mssun hm this is a quite old (3 years!) issue that's I think pretty unrelated to the failure you're seeing. It looks like you're trying to run |
@alexcrichton yes, it's quite old. What I'm trying to do is to run I wrote a script to build some downloaded crates for research purpose. However |
That use case I believe is addressed by #4030 for all crates published with a Cargo that has that support, but there's still old crates on crates.io for sure. |
Thanks Alex. This is indeed the root cause of my issue. So crates packaged with new cargo should be fine. |
And then it errors because
curl-rust
depends on the crates.io version of openssl.curl-rust
andrust-http
are bothdev-dependencies
, so I wouldn't expect them to matter when doing abuild
.The text was updated successfully, but these errors were encountered: