Y
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
rafram
158 days ago
> Build scripts communicate with Cargo by printing to stdout.
Oh lord.
link
ComputerGuru
158 days ago
Wrote an entire crate to clean up that mess (and provide traditional autoconf-ish features for build.rs):
https://crates.io/crates/rsconf
link
pxc
159 days ago
Geez, thank you.
link
Oh lord.