Re:Brave overhauled its Rust adblock engine with FlatBuffers...
by steveklabnik on Monday January 05, 2026 @07:49PM
(#46507350)
Rust crates can run arbitrary code at build time: https://doc.rust-lang.org/cargo/reference/build-scripts.html
[ Parent
| on HN ]
Re:Brave overhauled its Rust adblock engine with FlatBuffers...
by pxc on Monday January 05, 2026 @08:01PM
(#46507456)
Geez, thank you.
Re:Brave overhauled its Rust adblock engine with FlatBuffers...
by rafram on Tuesday January 06, 2026 @10:56AM
(#46513929)
> Build scripts communicate with Cargo by printing to stdout.
Oh lord.
Re:Brave overhauled its Rust adblock engine with FlatBuffers...
by ComputerGuru on Tuesday January 06, 2026 @01:28PM
(#46516407)
Wrote an entire crate to clean up that mess (and provide traditional autoconf-ish features for build.rs): https://crates.io/crates/rsconf