-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support modifying the current package's version (version
key in Cargo.toml)
#338
Comments
would be really useful for our workflow. I suggest calling the command |
From #471: Add support for Name is TBD but I think helping users bump versions would be useful. In particular, for workspaces, when changing one crate's version, you need to update all of the dependent crates to the new version. This logic lives in In-scope
Out-of-scope:
|
From the reddit post,
While we can share code, I don't agree with this statement. One of the big thing about |
I guess I didn't look closely enough at what |
I agree. The main blocker for this is that I am not happy with What we need is to finish the editing capability in https://github.com/matklad/tom (which is like rust-analyzer for toml). That's the next thing I had planned to be focusing on once clap v3 was released. From reddit post,
I was asking for a link to discussion because I wanted to point out the deficiencies of |
btw another one in this field is https://github.com/tamasfe/taplo
Ah, I thought you were asking for a link about Personally, I think the focus should be on getting a format preserving parser into Cargo so we can unblock |
I do agree. My issue is that |
This is prep for `cargo set-version` (killercup#338)
This is prep for `cargo set-version` (#338)
This is prep for `cargo set-version` (killercup#338) The biggest change with this upgrade is they switched from `std::path` to `camino` which requires UTF-8 paths.
This is prep for `cargo set-version` (#338) The biggest change with this upgrade is they switched from `std::path` to `camino` which requires UTF-8 paths.
This is prep for `cargo set-version` (#338) The biggest change with this upgrade is they switched from `std::path` to `camino` which requires UTF-8 paths.
Essentially provide the functionality of
npm version
cargo version <newversion>
sets the version of the current package to<newversion>
cargo version [major | minor | patch]
increments the major/minor/patch version of the current packageversion
field inCargo.toml
One issue I am aware of is that overriding cargo subcommands isn't possible, so an alternative to
version
would likely need to be used. Some options:modify-version
(too long IMO)semver
(my fav)ver
vers
I am creating this issue because it's recommended in CONTRIBUTING.md to create one before creating a PR. I am just now beginning the implementation of this command. I will begin the implementation with the name
semver
, but I intend to make it easily modifiable.The text was updated successfully, but these errors were encountered: