this post was submitted on 15 Jan 2025
11 points (92.3% liked)

Rust Programming

8635 readers
6 users here now

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 2 months ago (2 children)

How do you upgrade your deps?

I used to use 'cargo upgrade' from cargo-edit, but it stooped working at some point.

[–] [email protected] 1 points 1 month ago (1 children)

I usually use cargo upgrade -i allow --pinned --verbose and that works just fine. What isn't working for you?

[–] [email protected] 1 points 1 month ago

It was fixed.

The sparse index broke it for a few months.

[–] [email protected] 1 points 2 months ago (1 children)

cargo update

... It's that simple.

[–] [email protected] 4 points 2 months ago (1 children)

I think that only updates semver-compatible versions in the lock file.

I was looking for something that updates the cargo.toml to not necessarily compatible versions.

Since cargo-edit broke, I've had to do this by hand.

[–] [email protected] 2 points 2 months ago

Since cargo-edit broke

Sparse indices support got added in last September. A perma-WIP pull request that added support for them existed for much longer.