3 ms·
Wouldn't it make sense for Cargo not to use crate names in file names, and use hexadecimally encoded hashes instead?
by yrashk 9y ago
Wouldn't it make sense for Cargo not to use crate names in file names, and use hexadecimally encoded hashes instead?
- brianberns 9y agoYes, or some other identifier that's unique to that crate. Assuming that the crate name is also a valid file name seems risky.
- nomercy400 9y agoOr have a prefix. Once cost me exam points trying to optimize a prefix away. The examinators were right.
- stirner 9y agoYou could just hex encode the crate name. No need to hash it too.