Why does all cargo binaries have the same hash?

⚓ Rust    📅 2025-04-29    👤 surdeus    👁️ 5      

surdeus

Warning

This post was published 114 days ago. The information described in this article may have changed.

When I compute the hash of the following binaries in my .cargo/bin directory I got the same hash for all of them:

cargo-clippy.exe
cargo-fmt.exe
cargo-miri.exe
cargo.exe
clippy-driver.exe
rls.exe
rust-analyzer.exe
rust-gdb.exe
rust-gdbgui.exe
rust-lldb.exe
rustc.exe
rustdoc.exe
rustfmt.exe
rustup.exe

I'm curious to know why it's done like this and how it can work if it's all the same binary.

7 posts - 7 participants

Read full topic

🏷️ rust_feed