Crate metadeps [] [src]

metadeps lets you write pkg-config dependencies in Cargo.toml metadata, rather than programmatically in build.rs. This makes those dependencies declarative, so other tools can read them as well.

metadeps parses metadata like this in Cargo.toml:

[package.metadata.pkg-config]
testlib = "1.2"
testdata = { version = "4.5", feature = "some-feature" }

Structs

Error

The Error type.

Enums

ErrorKind

The kind of an error.

Traits

ResultExt

Additional methods for Result, for easy interaction with this crate.

Functions

probe

Probe all libraries configured in the Cargo.toml [package.metadata.pkg-config] section.

Type Definitions

Result

Convenient wrapper around std::Result.