this post was submitted on 31 Jan 2025
77 points (98.7% liked)

Rust

6383 readers
136 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
top 31 comments
sorted by: hot top controversial new old
[–] sugar_in_your_tea@sh.itjust.works 11 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

One issue I've run into recently is with dependencies that need to be the same version as a transitive dependency. I wish I could specify a dependency by marking the package I need to use it with, and cargo could figure it out from there.

Yeah, I know crates could just re-export or accept a trait or something, but I don't control every crate out there.

Another issue is that my target directory gets huge. I just deleted mine and it was 17GB for a small project with a handful of dependencies.

Rust rocks in general though.

[–] FizzyOrange@programming.dev 4 points 2 weeks ago

I agree. Maybe Rust should make crates automatically re-export dependencies if any of that dependency's types are publicly exposed.