-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
This(B) comes from(A) not wanting linting fmt/clippy to descend into feather from hazel-feather. See https://www.reddit.com/r/rust/comments/dimku2/crate_patching_and_fmtclippy/
The goal(A) is to have hazel-feather depend on a patched and volatile feather, that isn't linted recursively.
The goal(B) is to git push
something anyone can build where [patch.crates-io]
references git/remote. While at the same time having [patch.crates-io]
references a path/local.
On Unix ~/.cargo/overrides
has something like:
[hazel-feather.patch.crates-io.feather]
path = "../feather"
https://gitlab.com/cheako/hazel-feather/blob/77e70dbc9f760964df2ae66048032c5a3be3f388/Cargo.toml
The example takes any source where name = "hazel-feather"
. Might be better to use path to identify where to apply the override. For this project it's expected that feather will be edited a lot and it isn't good to have to push to gitlab for every change.