Skip to content
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

Keep Origin Style while cargo upgrade #444

Closed
aurexav opened this issue Dec 28, 2020 · 4 comments
Closed

Keep Origin Style while cargo upgrade #444

aurexav opened this issue Dec 28, 2020 · 4 comments

Comments

@aurexav
Copy link

aurexav commented Dec 28, 2020

I don't want it to overwrite my format.

# origin
foo = { version = "0.1.0" }
# expect
foo = { version = "0.2.0" }
# actual
foo = "0.2.0
@augustocdias
Copy link

I would also expand this to the version specification.
I usually specify only "0.2" and I would like to keep my Cargo.tom that way.

@mgattozzi
Copy link

Another thing that would be nice, having run into this today, would be that if I use ^ or = at the beginning that they be preserved.

@epage
Copy link
Collaborator

epage commented Mar 31, 2022

Right now, we generically modify the dependency table. Really, we should be just overwriting the version field.

@epage
Copy link
Collaborator

epage commented Jul 13, 2022

#725 fixed this.

@epage epage closed this as completed Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants