this post was submitted on 15 Jan 2025
10 points (91.7% liked)

Rust Programming

8386 readers
6 users here now

founded 5 years ago
MODERATORS
top 7 comments
sorted by: hot top controversial new old
[–] trevor@lemmy.blahaj.zone 3 points 1 month ago (1 children)

I don't have a strong use for this because i mostly just let it rip when it comes to dependency updates, but I wanted to say that Rust makes the absolute best CLIs (mostly thanks to clap and ratatui).

I love that basically any CLI made in Rust will usually get you easy, readable help output, sensible argument parsing, and with just a small amount of additional effort, shell completions.

[–] vext01@lemmy.sdf.org 1 points 1 month 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.

[–] RustyNova@lemmy.world 1 points 1 month ago (1 children)

cargo update

... It's that simple.

[–] vext01@lemmy.sdf.org 4 points 1 month 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.

[–] BB_C@programming.dev 2 points 1 month 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.

[–] taladar@sh.itjust.works 1 points 1 week ago (1 children)

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

[–] vext01@lemmy.sdf.org 1 points 1 week ago

It was fixed.

The sparse index broke it for a few months.