I'm curious about some of the internals of cargo. Does anyone know how the following id in $CARGO_HOME/registry/cache/index.crates.io-6f17d22bba15001f/
is calculated?
I believe this is a Metadata
hash. It is computed here: cargo/src/cargo/core/compiler/build_runner/compilation_files.rs at 14b46ecc62aa671d7477beba237ad9c6a209cf5d · rust-lang/cargo (github.com) There is some documentation on the Metadata
type in this file. And the docs for the fingerprint
module are also relevant.
1 Like
It’s SipHash of the full type of the index
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.