dependencies-patch-0.4.1 is not a library.
dependencies-patch
A simple tool to patch cargo dependencies with command line commands.
Todo List
- Support for packages from
github - Support for packages from other URL
- Support for packages from
crates-io - Support for packages from other registries
Installation
Usage
The Cargo.toml for example_project looks like this:
[]
= "2021"
= "project1"
= "0.1.0"
[]
[]
= "0.4"
Then run following commands to patch the log dependency to a git repository:
After running the command, the Cargo.toml will be updated to:
[]
= "2021"
= "project1"
= "0.1.0"
[]
[]
= "0.4"
[]
= "https://github.com/rust-lang//log.git"
We can also patch the package to the local path by running the following commands:
And the Cargo.toml will be updated to:
[]
= "helloworld"
= "0.1.0"
= "2021"
[]
= "0.4"
[]
= "../log"
More usages can be known by running dependencies --help command.
Notes
The tool can only add patches to the Cargo.toml file. It don't support removing patches.