3 ms·
> Rust is designed around safety and soundness. Then why are crates automatically updated from internet ? This is not safety, this is remote code execution.
by hulitu 4y ago
> Rust is designed around safety and soundness.
Then why are crates automatically updated from internet ?
This is not safety, this is remote code execution.
- vilunov 4y agoCargo doesn't update crates automatically.
- nyanpasu64 4y ago`cargo install` updates crates automatically, unless you add the non-default --locked parameter.
- firstlink 4y ago`cargo install` is a one-shot build of a program and all of its dependencies from source; in what sense does it "update" any crates?
- nyanpasu64 4y ago`cargo install` doesn't install the locked dependency versions tested by the program author, but ignores Cargo.lock entirely and automatically updates all dependencies to the latest versions (usually semver) allowed by the Cargo.toml file.