#cargo-toml #cmd-line #modify #resolver

app cargo-modify

allows changes to the cargo toml via cmd line

4 releases (2 breaking)

0.3.1 Apr 19, 2021
0.3.0 Apr 19, 2021
0.2.0 Apr 19, 2021
0.1.0 Apr 19, 2021

#12 in #cmd-line

Custom license

5KB
81 lines

cargo-modify

Currently a proof of concept for being able to switch the new resolver on/off via a cmd line call during a CI build job.

usage

run cargo modify in a folder that contains a Cargo.toml:

# set new resolver
cargo modify new-resolver
# same as above
cargo modify new-resolver --v2=true
# remove 'resolver' from Cargo.toml
cargo modify new-resolver --v2=false

Caution this will reorder your Cargo.toml arbitrarily. Primary use-case is to do on-the-fly changes on a CI

more

later we could use this to allow arbitrary edits on a Cargo.toml, ideas welcome.

Dependencies

~260–500KB
~11K SLoC