Crates.io | reref |
lib.rs | reref |
version | 0.2.0 |
source | src |
created_at | 2023-08-22 12:36:41.295289 |
updated_at | 2023-08-22 12:36:41.295289 |
description | A tool for transforming the dependencies fields on all Cargo.toml in a given project |
homepage | |
repository | |
max_upload_size | |
id | 951021 |
size | 33,631 |
cargo install reref --git https://github.com/paritytech/reref
reref
is a tool for transforming dependencies fields' on all Cargo.toml
in a
given project.
Suppose you have the following Cargo.toml
[dependencies]
foo = { git = "https://github.com/org/foo", branch = "master" }
And you want to replace all "branch" = "master"
with "tag" = "v0.1"
where
"git" = "https://github.com/org/foo"
. The command would be:
reref \
--project path/to/project \
--match-git https://github.com/org/foo \
--remove-field branch \
--add-field tag \
--added-field-value v0.1
If you'd like to automatically Git commit the modifications made, also add the
--autocommit
flag.