-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Not clear how to [patch] sources other than crates-io #4499
Comments
I was able to get this feature working by putting the URL in quotes:
|
With something like rust-lang/rfcs#1133 on the horizon, we will also have standard library deps. Eventually Cargo and the provided compiler will somehow negotiate to get Cargo any compiler-specific sources for standard library crates. But, figuring that out will involve many people and grind things to a halt. So the stop-gap solution in rust-lang/rfcs#1133 was to allow the user to tl;dr, need to |
I believe this was since documented, so closing. |
https://doc.rust-lang.org/cargo/reference/manifest.html#the-patch-section doesn't yet contain this? |
See #5478 |
So I think this might be a documentation bug rather than anything else. On the page: http://doc.crates.io/manifest.html#the-patch-section
Each key after [patch] is a URL of the source that's being patched, or crates-io if you're modifying the https://crates.io registry. In the example above crates-io could be replaced with a git URL such as https://github.com/rust-lang-nursery/log.
So after reading this, there are two thing you might try. If you're not that familiar with toml, then you might try the following:
This is not valid toml. Another thing you might try is
But this is ignored ("warning: unused manifest key: patch")
Ideally there would be a working example in the docs.
The text was updated successfully, but these errors were encountered: