You are not logged in.
I did this after reading a post about paru not having yay's shortcoming of not showing installed package sizes (it turns out this is nonsense).
I also read that it's based on rust (which I know almost nothing about) and therefore faster and more efficient.
So I made the switch, choosing "rust" over "rustup" as the requisite dependency.
I've installed one package with it (jdupes), and in my home directory has appeared a directory ~/.cargo, 180MB in size, containing >17,000 files!
Why?
I don't know if it was the build and installation of paru or jdupes that caused this.
Looking at paru's PKGBUILD, there's a makedepend = 'cargo'', but I can't find a package anywhere called cargo.
Since it's only a makedepend, and rust isn't mentioned anywhere as a runtime dependency, can I now delete that ~/.cargo directory full of lord knows what, and also delete the rust package?
I'm reluctant to do so because "pacman -Qdt" returns nothing.
Offline
cargo is rust package manager, rust and rustup both provide it .
~/.cargo is where cargo stores stuff, primarily for caching downloaded crates.
Neither jdupes nor its aur dep libjodycode use rust/cargo , so the folder was probably created when building paru.
You can remove it, but on next cargo run the folder will be re-created.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Thank you lone_wolf, that makes sense to me.
I make a couple of assumtions then...
...that I could -Rsn rust and delete all the cargo stuff associated with it without any issues, but the next time paru is updated it will all be pulled back down again (in the same way "go" is pulled back in every time yay is updated).
...that if cargo doesn't exest as an independent package and would be kind of pointless anyway without rust, then maybe the "makedepends" entry in the PKGBUILD files should read "rust" rather than "cargo"?
I still dont get why "rust" doesn't show up with -Qdt though, as "go" does after a yay installation.
They certainly named "cargo" well. *17,000* files in your home root? jeez...
EDIT:
My apologies - I'd forgotten I marked rust "--asexplicit" as I did with the go package when I was using yay. That was before I knew it was going to fill my home directory with mountains of crap. Sorry for the noise.
Last edited by bananabrain (2025-09-21 23:35:15)
Offline
Looking at https://wiki.archlinux.org/title/Rust It seems the rust package is standalone and intended for users building/running stuff.
Rustup supports multiple toolchains, is intended for developers and can also be used for building..
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline