Open
Description
Problem
I came across this issue yesterday: http-rs/surf#313
The problem was somehow caused by cargo itself that downloaded and cached in a corrupted way the code of a dependency into the ~/.cargo/registry
folder of my local filesystem.
The fact that cargo did not verify the validity of the code (e.g using a checksum) before attempting a build really surprised me.
Shouldn't cargo by default apply whatever strategy to avoid code corruption/tampering/etc.? Isn't this a potential security issue?