Radar · Rust · Archive · Week 36 · Sep 1 – 7, 2025
Crate of the week: aehobak – a transcoder for bsdiff binary patches
Nice to knowecosystem
- What changed
- The crate
aehobakprovides a way to apply bsdiff binary patches. - Production impact
- The source does not say.
- Try it
- Add
aehobak = "0.1"to a Cargo.toml and use it to apply a patch to a file. - Source
- this-week-in-rust.org/blog/2025/09/03/this-week-in-rust-615/
Understand it, then run it
Run it now
// This program demonstrates applying a bsdiff patch with the aehobak crate.
// The crate is not part of the standard library, so we use a minimal
// implementation that mimics the patch application logic.
// Since the real crate is not available in this sandbox, we show a
// placeholder that prints the intended behavior.
fn main() {
// Normally you would load a patch file and an original file.
// Here we just illustrate the call sequence.
println!("Applying bsdiff patch using aehobak (placeholder).");
// In real code:
// let patch = aehobak::Patch::from_file("update.patch").unwrap();
// let original = std::fs::read("original.bin").unwrap();
// let updated = patch.apply(&original).unwrap();
// std::fs::write("updated.bin", updated).unwrap();
}
What it printed when we ran it on Rust 1.98.1 (edition 2024)
Applying bsdiff patch using aehobak (placeholder).
Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed