-
Notifications
You must be signed in to change notification settings - Fork 290
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
Loom should be dev dependency #400
Comments
It's listed only for |
Does that actually work? |
I'm getting bytes via reqwest and tokio, no extra configuration or anything and I do get loom |
@JordiPolo Can't reproduce. Creating a dummy project and adding |
Maybe is my ignorance of how Cargo works then.
|
With my dummy project it also wasn't compiled. I'm pretty sure the lockfile is target-independent, so compiling the same project for different targets doesn't change the lockfile back and forth (if it would that would be very annoying for applications that keep the lockfile in source control). |
crates.io could really use some UI for target-specific dependencies though... |
Yeah, just looking at the files in my repo I do not have enough information to know if I am going to compile this into my production application which can be scary. |
Please reopen this issue. It is also a problem when using |
Seems like something that should be handled as an option in |
Would be nice, but I don't think it exists? See also https://www.reddit.com/r/rust/comments/8plauq/dont_vendor_deps_i_dont_need/ |
Doesn't look like it but still, if the extra stuff being downloaded is an issue for you, you should probably try to get cargo fixed rather than having bytes work around it. The main issue seems to be rust-lang/cargo#4544. |
I agree in principle, but in practice it could take years to fix it in cargo. Maybe there is a simple workaround in In any case, the solution I went for in the end is to fork |
Switching it to a |
Bytes brings as dependency loom which itself brings a lot of stuff. This is very surprising because loom is a testing utility.
The text was updated successfully, but these errors were encountered: