Researching the output of: find ~/.cargo/registry/ -maxdepth 2 -type d

Hi,

What is the output

find ~/.cargo/registry/ -maxdepth 2 -type d

at your system?

Mine is

/home/gs0604/.cargo/registry/
/home/gs0604/.cargo/registry/index
/home/gs0604/.cargo/registry/index/github.com-1ecc6299db9ec823
/home/gs0604/.cargo/registry/src
/home/gs0604/.cargo/registry/src/github.com-1ecc6299db9ec823
/home/gs0604/.cargo/registry/cache
/home/gs0604/.cargo/registry/cache/reproduceble-builds.org-4848616d62757267
/home/gs0604/.cargo/registry/cache/github.com-1ecc6299db9ec823

Reason for asking is finding out which variations exist.
Thing I'm considering is pre-populating ~/.cargo/registry/cache

Regards
Geert Stappers

My assumption wrt the cargo registry dir would be the same as with the windows registry: the hash-like filename parts are somehow magically producedĀ¹, and without a full understanding of how that works, chances are changing something will bork your Rust install.
As for that full understanding about the cargo registry though, unfortunately I don't have it.

Ā¹Either by way of hashing or something else.

1 Like