2
submitted 8 months ago* (last edited 8 months ago) by dontblink@feddit.it to c/rust@lemmy.ml

In python, when you install stuff with pip, it is recommended to use a venv, to avoid breaking dependencies for a program when uninstalling another one, or when two programs need two different versions of the same dependence.

I was wondering if with Rust is the same, or if Cargo manages it all on its own (kind of like apt does), and I shouldn't care about it.

Also since I know Linux kernel is using some Rust, isn't there a risk of breaking my system if I uninstall a program that need some deps that the system itsel needs?

you are viewing a single comment's thread
view the rest of the comments
[-] taladar@sh.itjust.works 1 points 8 months ago* (last edited 8 months ago)

Kind of but it is also only needed at compile time, the dependencies are not used at runtime, instead everything is compiled and statically linked into the executable.

this post was submitted on 23 Nov 2024
2 points (100.0% liked)

Rust Programming

8901 readers
35 users here now

founded 6 years ago
MODERATORS