Crates.io | cargo-modify |
lib.rs | cargo-modify |
version | 0.3.1 |
source | src |
created_at | 2021-04-19 13:56:51.063837 |
updated_at | 2021-04-19 16:12:26.146092 |
description | allows changes to the cargo toml via cmd line |
homepage | https://github.com/extrawurst/cargo-modify |
repository | https://github.com/extrawurst/cargo-modify |
max_upload_size | |
id | 386667 |
size | 6,397 |
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.
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
later we could use this to allow arbitrary edits on a Cargo.toml
, ideas welcome.