rhack(1)
rhack - easily edit external crates that your Rust project depends on.
rhack
To check out a local copy of your dependency run:
*rhack* <package name>
This will make a copy of the crate in your RHACK_DIR, and patch your Cargo.toml.
For example running rhack reqwest might result in a local copy at ~/.rhack/reqwest-0.11.1, and an amendment to your Cargo.toml like this:
\[patch.crates-io\]++
reqwest = { path = "/home/you/.rhack/reqwest-0.11.1" }
To remove changes made by rhack to Cargo.toml, run:
*rhack undo*
This will not remove any copies of crates in your RHACK_DIR.
rhack stores copies of crates in the directory specified by the RHACK_DIR environment variable.
Where this is unset, the default is $HOME/.rhack
Ryo Nakao [email protected]
Sources can be found, and bugs or patches submitted at https://github.com/nakabonne/rhack