#rustlang build scripts vs. #meson - https://people.gnome.org/~federico/blog/rust-build-scripts.html
@federicomena These are the clean cases. libpng has libpng-config, which is like pkg-config, but not quite. llvm is even worse.
Some scripts both search (in complex ways) or build static, depending on platform and settings.
Exposing include path to parent crate is another use of build.rs (e.g. libpng-sys can read where zlib-sys has found zlib.h).
Enabling cargo features based on detected env (rust version, presence of a lib) is another use.
@kornel eeeeeeeek. This is extremely messy. I really look forward to making it possible to let Meson handle this, and leaving Cargo as a figure-out-the-rust-deps part.
La red social del futuro: ¡Sin anuncios, sin vigilancia corporativa, diseño ético, y descentralización! ¡Sé dueño de tu información con Mastodon!