Skip to content
rusthacks.dev

Library

Everything you need to level up your coding skills.

Flat illustration for the post “Integer Overflow Bugs in Rust Release Builds and Fixes”, composed around security.
Security

Integer Overflow Bugs in Rust Release Builds and Fixes

Integer overflow panics in debug builds and wraps in release builds by default. Learn how that becomes a vulnerability, which arithmetic to use for untrusted numbers and how to enable checks in release.

3 min read
Flat illustration for the post “Benchmarking Pitfalls in Rust and Dead Code Removal”, composed around perf.
Performance

Benchmarking Pitfalls in Rust and Dead Code Removal

Benchmarks fail by measuring nothing: the optimizer deletes the work, the input is unrealistic, the machine is noisy or the harness measures setup. Here are the traps and how to avoid each.

3 min read
Flat illustration for the post “Reproducible Builds in Rust and Verifying a Binary”, composed around deploy.
SecurityGuide

Reproducible Builds in Rust and Verifying a Binary

A reproducible build produces the same bytes from the same source anywhere. See what breaks it in Rust (paths, timestamps, toolchains), how to fix each, and how to verify a binary.

14 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.