Hacker News new | ask | show | jobs
by steveklabnik 159 days ago
Rust crates can run arbitrary code at build time: https://doc.rust-lang.org/cargo/reference/build-scripts.html
2 comments

> Build scripts communicate with Cargo by printing to stdout.

Oh lord.

Wrote an entire crate to clean up that mess (and provide traditional autoconf-ish features for build.rs): https://crates.io/crates/rsconf
Geez, thank you.