Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
steveklabnik
4mo ago
0 comments
Share
Rust crates can run arbitrary code at build time:
https://doc.rust-lang.org/cargo/reference/build-scripts.html
0 comments
default
newest
oldest
rafram
4mo ago
> Build scripts communicate with Cargo by printing to stdout.
Oh lord.
ComputerGuru
4mo ago
Wrote an entire crate to clean up that mess (and provide traditional autoconf-ish features for build.rs):
https://crates.io/crates/rsconf
pxc
4mo ago
Geez, thank you.
j
/
k
navigate · click thread line to collapse