Struct system_deps::Dependencies
source · pub struct Dependencies { /* private fields */ }
Expand description
All the system dependencies retrieved by Config::probe.
Implementations§
source§impl Dependencies
impl Dependencies
sourcepub fn get_by_name(&self, name: &str) -> Option<&Library>
pub fn get_by_name(&self, name: &str) -> Option<&Library>
Retrieve details about a system dependency.
§Arguments
name
: the name of thetoml
key defining the dependency inCargo.toml
sourcepub fn iter(&self) -> Vec<(&str, &Library)>
pub fn iter(&self) -> Vec<(&str, &Library)>
A vector listing all system dependencies in sorted (for build reproducibility) order.
The first element of the tuple is the name of the toml
key defining the
dependency in Cargo.toml
.
sourcepub fn all_libs(&self) -> Vec<&str>
pub fn all_libs(&self) -> Vec<&str>
Returns a vector of Library::libs of each library, removing duplicates.
sourcepub fn all_link_paths(&self) -> Vec<&PathBuf>
pub fn all_link_paths(&self) -> Vec<&PathBuf>
Returns a vector of Library::link_paths of each library, removing duplicates.
sourcepub fn all_frameworks(&self) -> Vec<&str>
pub fn all_frameworks(&self) -> Vec<&str>
Returns a vector of Library::frameworks of each library, removing duplicates.
sourcepub fn all_framework_paths(&self) -> Vec<&PathBuf>
pub fn all_framework_paths(&self) -> Vec<&PathBuf>
Returns a vector of Library::framework_paths of each library, removing duplicates.
sourcepub fn all_include_paths(&self) -> Vec<&PathBuf>
pub fn all_include_paths(&self) -> Vec<&PathBuf>
Returns a vector of Library::include_paths of each library, removing duplicates.
sourcepub fn all_linker_args(&self) -> Vec<&Vec<String>>
pub fn all_linker_args(&self) -> Vec<&Vec<String>>
Returns a vector of Library::ld_args of each library, removing duplicates.
sourcepub fn all_defines(&self) -> Vec<(&str, &Option<String>)>
pub fn all_defines(&self) -> Vec<(&str, &Option<String>)>
Returns a vector of Library::defines of each library, removing duplicates.