Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Question: How is the index.crates.io-xxxxxxxx directory name generated?
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