https://github.com/extrawurst/cargo-modify
https://github.com/extrawurst/cargo-modify
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/extrawurst/cargo-modify
- Owner: extrawurst
- License: mit
- Created: 2021-04-19T13:30:34.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-19T16:12:04.000Z (about 5 years ago)
- Last Synced: 2025-02-28T05:30:23.505Z (over 1 year ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`:
```sh
# 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.