Crate rpkg_config

Source
Expand description

§rpkg-config

rpkg-config is a standalone library for parsing and getting information from pkg-config’s pc files in Rust.

This is not a replacement for the pkg-config crate. If you want to detect and use installed packages with pkg-config, you should use that instead.

To use, first create a PkgConfig struct with e.g. PkgConfig::open. The libs and libs_private methods return an iterator over items in the Libs and Libs.private keys, respectively.

Currently that’s about it, if you need something else you can open an issue at github.

Structs§

EncodingError
Error returned if there’s a problem with the text encoding
Links
Iterator over items in Libs or Libs.private
ParseError
Error returned when something couldn’t be parsed
PkgConfig
A parsed pkg-config pc file
UnescapeAndSplit
Iterator over a pkg-config key that handles escapes and splits by unescaped whitespace

Enums§

Link
Items parsed from Libs or Libs.private keys
OpenError
Error returned by PkgConfig::open
VariableError
Error returned when a variable couldn’t be resolved