Maybe I am wrong or my understanding is oversimplified. But the way I understand it is that when you add a dependency to your cargo.toml file, when you run the build rust is going to cargo and downloading those dependencies you added for you and stores the dependencies with project files.
Then when you rebuild it is checking cargo to see if there is a later version and will update according to how you specified the version in the cargo.toml file.
So you are using cargo. it’s basically just automated, so you don’t have to manually interact with cargo the same way you do with pip.
In case anyone was scrolling by and is interested the quote is a bit misleading out of context, Marx isn’t saying we should do this, he is more saying that capitalism requires “us” to do this, while telling us if we just stop eating avocado toast we too could become part of the billionaire class. While of course they themselves would never live without these supposed needless things.
Read it in context here Need, Production and Division of Labor, this link is directly to the section the quote is from but in my opinion the formatting isn’t as good.