Rust is memory-safe, not supply-chain-safe: the arrayref case
Three popular Rust crates (arrayref, with 245 million downloads) were poisoned via account takeover and a typosquat, proc-macro1, that ran an infostealer at compile time through build.rs. Rust does not protect you here: memory safety is not supply-chain safety. How it worked and what would have stopped it: cargo-deny, vendoring, offline builds, pinning.
Read the article