cargo-patch-0.1.0 is not a library.
Visit the last successful build:
cargo-patch-0.3.2
cargo-patch
Cargo-Patch is a Cargo Subcommand which allows
patching dependencies using patch files.
Installation
Simply run:
Usage
To patch a dependecy one has to add the following
to Cargo.toml:
[]
= [
"test.patch"
]
It specifies which dependency to patch (in this case serde) and one or more patchfiles to apply. Running:
will download the serde package specified in the
dependency section to the target/patch folder
and apply the given patches. To use the patched
version one has to override the dependency using
replace like this
[]
= { = './target/patch/serde-1.0.110' }
Patch format
You can either use diff or git to create patch files. Important is that file paths are relativ and inside the dependency
Features
- Patch dependencies from crates.io
- Patch dependencies from git url
- Handle Workspaces
- Use error messages which noone understands