Skip to content

Latest commit

 

History

History
47 lines (26 loc) · 985 Bytes

rhack.1.scd

File metadata and controls

47 lines (26 loc) · 985 Bytes

rhack(1)

NAME

rhack - easily edit external crates that your Rust project depends on.

SYNOPSIS

rhack

EDITING

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" }

UNDO

To remove changes made by rhack to Cargo.toml, run:

*rhack undo*

This will not remove any copies of crates in your RHACK_DIR.

CONFIGURATION

rhack stores copies of crates in the directory specified by the RHACK_DIR environment variable.

Where this is unset, the default is $HOME/.rhack

AUTHORS

Ryo Nakao [email protected]

PROJECT HOMEPAGE

Sources can be found, and bugs or patches submitted at https://github.com/nakabonne/rhack