stable

Clone or download

Read-only

request #27507: Rewrite `sha1collisiondetector` tool in Rust 🦀

A crate porting the original C library to Rust makes it easy to move our existing C code to a few lines of Rust. This also give us the opportunity to move all the code inside the monorepo instead of pulling it from an external repository. To test, build the package and install it in your dev instance. You should still be able to commit inside SVN repository. We use an overlay that pull Rust from the binaries provided by the Rust project itself. This allow us to use the target we want to get a static binary without rebuilding the whole toolchain. Change-Id: Ibe5332da4599598f21f0aab768665affa6052de0

Modified Files

Name
M src/additional-packages/sha1collisiondetector.nix +66 −21 Go to diff View file
A src/additional-packages/sha1collisiondetector/.gitignore +1 −0 Go to diff View file
A src/additional-packages/sha1collisiondetector/Cargo.lock +238 −0 Go to diff View file
A src/additional-packages/sha1collisiondetector/Cargo.toml +7 −0 Go to diff View file
A src/additional-packages/sha1collisiondetector/sha1collisiondetector.spec +32 −0 Go to diff View file
A src/additional-packages/sha1collisiondetector/shell.nix +7 −0 Go to diff View file
A src/additional-packages/sha1collisiondetector/src/main.rs +20 −0 Go to diff View file
A tools/utils/nix/oxalica-rust-overlay-pin.json +11 −0 Go to diff View file
M tools/utils/nix/pinned-nixpkgs.nix +6 −1 Go to diff View file
R tools/utils/nix/update-nixpkgs-pin.sh Go to diff View file