New to this part of Rust, so my apologies if I am missing something obvious
Imagine that I am using a crate, foo
which I want to create a bugfix in, and that my cargo.toml looks like this:
[dependencies.foo]
version = "0.0.1"
default-features = false
features = ["unstable"]
According to the Rust Docs, I should be able to switch to using a locally checked out version of the crate by using:
[patch.crates-io]
foo = {path = '../bar'}
This doesn't work, and the package from crates.io is still downloaded each and every time.
The following does, but then I am unable to pass any options:
[dependencies]
foo = "0.0.1"
[patch.crates-io]
foo = {path = '../bar'}"
How can I pass flags like default-features
and features
in Cargo.toml while using my locally checked out crate?