-
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
paths override in .cargo/config but cargo can't find crate #3191
Comments
What does the |
These are the Cargo.toml files: |
It looks like may be a version mismatch? The ffmpeg crate is requesting 2.8 where the sys crate you've got is 3.0. If you update those to match does it work? If so, then we definitely need to improve the error! |
I just tried changing it to
But now I get:
|
Oh try changing the version in ffmpeg-sys itself to match 2.8 perhaps? |
Could we fix this, or relax the version requirement? This is really bothering us Servo people who include bumps in PRs, and we shouldn't be forced to change our workflow IMO. |
@alexcrichton I changed the version in ffmpeg-sys it to 2.8.8 and now it works. I also had to modify rust-ffmpeg after that to get it to compile, so I added an override in paths for it too, but now when I compile something that depends on rust-ffmpeg (like rust-openal's play example), I get this:
|
@nox the issue I believe you're referring to is unrelated to this.
Yay!
Unfortunately not currently :(
Aha indeed! Intrusive changes to the original dependency are actually broken with |
Is there a way to do the override globally (for all projects that I build with cargo which require ffmpeg) so that it doesn't give this error / break the dependency? |
@Boscop for this sort of application where the version is changing, or dependencies are changing, unfortunately no ( |
The documentation says:
So what can one use to replace a crate with a different version now that neither |
@nox again this report is not related to |
Created a new issue for the |
I'm coming here from #3548.
Other notes/comments
|
Any news on this? |
Looking over this, it seems the original concerns were resolved (version mismatch) and then it led to a separate issue around changing dependencies when As the original issue sounds resolved, I'm going to close. If people are still needing dependency changes for path overrides and can't use |
I'm trying to build ffmpeg on windows (using the latest cargo and nightly rustc-msvc through rustup). This crate depends on rust-ffmpeg-sys which didn't build on windows out of the box so I tweaked it until it did build, as a local fork, at
D:\3rdparty\rust-ffmpeg-sys
. Next, I wanted to build rust-ffmpeg using my local fork of rust-ffmpeg-sys, so I put this inC:\Users\me\.cargo\config
:Now trying to build rust-ffmpeg again with this override, I get this error:
verbose output
My intention with the override is that all crates that I try to build with cargo that depend on ffmpeg-sys will use the local version (because otherwise they will fail to build).
Why doesn't the override work?
The text was updated successfully, but these errors were encountered: