Warning
This post was published 117 days ago. The information described in this article may have changed.
Hi Cargo team,
When working with crates stored in $CARGO_HOME/registry/src/
,
I noticed that the source path is typically under a directory named like index.crates.io-xxxxxxxx
.
However, on my machine, there are multiple such directories, for example:
index.crates.io-1949cf8c6b5b557f
index.crates.io-6f17d22bba15001f
I would like to understand:
xxxxxxxx
part (the hash suffix) generated?index.crates.io-*
directories on the same machine?index.crates.io-*
folder to use?From reading the source code, it seems related to CanonicalUrl
and some hashing mechanism,
but I'm not entirely sure about the complete process.
Thank you very much for your help!
3 posts - 2 participants
🏷️ rust_feed