logoalt Hacker News

drnick1yesterday at 8:43 PM2 repliesview on HN

Yes of course you could do this in Rust. It's just that every resource out there promotes the usage of Cargo, and sells this as an "improvement" over the old school way of managing dependencies manually.


Replies

FridgeSealyesterday at 9:09 PM

Cargo will let you vendor code into your repo easily.

I think you’re conflating the tool, with how people manage deps.

https://doc.rust-lang.org/cargo/commands/cargo-vendor.html

rcxdudeyesterday at 9:35 PM

it's mainly an improvement because the rust ecosystem has a standardized way to build and distribute packages, so you can reliably add a dependency without build system pain. If you don't think having a reference to a central repo is a good way to go, you can vendor or even just pin your dependencies.