| Crates.io | build_id2 |
| lib.rs | build_id2 |
| version | 0.15.4 |
| created_at | 2025-11-13 00:32:38.725234+00 |
| updated_at | 2025-11-13 00:32:38.725234+00 |
| description | Updated and maintained build id library |
| homepage | |
| repository | https://github.com/AFLplusplus/LibAFL/ |
| max_upload_size | |
| id | 1930196 |
| size | 29,112 |
build_id2: A maintained way to uniquely represent the build of the current binaryThe build_id2 crate is a maintained and updated fork of build_id.
With it, you can obtain a Uuid uniquely representing the build of the current binary.
This is intended to be used to check that different processes are indeed invocations of identically laid out binaries.
As such:
Add the following to your Cargo.toml:
[dependencies]
build_id2 = "0.15.4"
Then, you can use the get function to get the build id:
# let remote_build_id = build_id2::get();
let local_build_id = build_id2::get();
if local_build_id == remote_build_id {
println!("We're running the same binary as remote!");
} else {
println!("We're running a different binary to remote");
}
LibAFL ProjectThe LibAFL project is part of AFLplusplus and maintained by
For bugs, feel free to open issues or contact us directly. Thank you for your support. <3
Even though we will gladly assist you in finishing up your PR, try to
cfgs.)cargo nightly fmt on your code before pushingcargo clippy --all or ./clippy.shcargo build --no-default-features to check for no_std compatibility (and possibly add #[cfg(feature = "std")]) to hide parts of your code.Some parts in this list may sound hard, but don't be afraid to open a PR if you cannot fix them by yourself. We will gladly assist.