2018-01-23 18:24:51 +01:00
2018-01-23 18:24:51 +01:00
2016-11-19 10:08:57 -08:00
2017-11-30 17:40:59 +01:00
2014-10-31 22:01:35 -07:00
2014-10-31 22:01:35 -07:00

pkg-config-rs

Build Status

Documentation

A simple library meant to be used as a build dependency with Cargo packages in order to use the system pkg-config tool (if available) to determine where a library is located.

You can use this crate directly to probe for specific libraries, or use metadeps to declare all your pkg-config dependencies in Cargo.toml.

Example

Find the system library named foo, with minimum version 1.2.3:

extern crate pkg_config;

fn main() {
    pkg_config::Config::new().atleast_version("1.2.3").probe("foo").unwrap();
}

Find the system library named foo, with no version requirement (not recommended):

extern crate pkg_config;

fn main() {
    pkg_config::probe_library("foo").unwrap();
}

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Serde by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

S
Description
Cargo 构建时,pkg-config 找Host的库
Readme 453 KiB
Languages
Rust 100%