system-deps

Run pkg-config from declarative dependencies in Cargo.toml

Latest version: 7.0.8 registry icon
Maintenance score
71
Safety score
100
Popularity score
75
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
7.0.8 0 0 0 0 0
7.0.7 0 0 0 0 0
7.0.6 0 0 0 0 0
7.0.5 0 0 0 0 0
7.0.4 0 0 0 0 0
7.0.3 0 0 0 0 0
7.0.2 0 0 0 0 0
7.0.1 0 0 0 0 0
7.0.0 0 0 0 0 0
6.2.2 0 0 0 0 0
6.2.1 0 0 0 0 0
6.2.0 0 0 0 0 0
6.1.2 0 0 0 0 0
6.1.1 0 0 0 0 0
6.1.0 0 0 0 0 0
6.0.5 0 0 0 0 0
6.0.4 0 0 0 0 0
6.0.3 0 0 0 0 0
6.0.2 0 0 0 0 0
6.0.1 0 0 0 0 0
6.0.0 0 0 0 0 0
5.0.0 0 0 0 0 0
4.0.0 0 0 0 0 0
3.2.0 0 0 0 0 0
3.1.2 0 0 0 0 0
3.1.1 0 0 0 0 0
3.1.0 0 0 0 0 0
3.0.0 0 0 0 0 0
2.0.3 0 0 0 0 0
2.0.2 0 0 0 0 0
2.0.1 0 0 0 0 0
2.0.0 0 0 0 0 0
1.3.2 0 0 0 0 0
1.3.1 0 0 0 0 0
1.3.0 0 0 0 0 0
1.2.0 0 0 0 0 0
1.1.0 0 0 0 0 0

Stability
Latest release:

7.0.8 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant


Apache-2.0   -   Apache License 2.0

Not a wildcard

Not proprietary

OSI Compliant



system-deps codecov CI

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

For now only pkg-config dependencies are supported, but we are planning to expand it at some point.

Users can override dependency flags using environment variables if needed. system-deps also allows -sys crates to optionally internally build and static link the required system library.

system-deps has been started as a fork of the metadeps project.

Documentation

See the crate documentation.

Usage

In your Cargo.toml:

[build-dependencies]
system-deps = "2.0"

Then, to declare a dependency on testlib >= 1.2 add the following section:

[package.metadata.system-deps]
testlib = "1.2"

Finally, in your build.rs, add:

fn main() {
    system_deps::Config::new().probe().unwrap();
}

See the crate documentation for more advanced features.