Closed nox closed 6 years ago
The point of this crate is to expose that metadata in a programmatically readable way, for use by more software than just the build script itself. That's the primary value metadeps adds over using pkg-config directly: declarative dependencies, easily readable and parseable out of Cargo.toml
.
Is there currently any other tool that make use of this data in Cargo.toml?
I've thought a bit more about the
toml
bump and realised something: what's even the point of specifying the third-party dependencies in Cargo.toml? That crate should just expose APIs to specify the list of dependencies as code in build.rs directly.E.g. instead of writing:
One should just do:
This way one does not need any parser, and it's not like specifying them in a declarative way in Cargo.toml brings much to the table anyway.