[−][src]Struct system_deps::Config
Structure used to configure metadata before starting to probe for dependencies
Implementations
impl Config[src]
pub fn new() -> Self[src]
Create a new set of configuration
pub fn probe(self) -> Result<HashMap<String, Library>, Error>[src]
Probe all libraries configured in the Cargo.toml
[package.metadata.system-deps] section.
pub fn add_build_internal<F>(self, name: &str, func: F) -> Self where
F: 'static + FnOnce(&str, &str) -> Result<Library, BuildInternalClosureError>, [src]
F: 'static + FnOnce(&str, &str) -> Result<Library, BuildInternalClosureError>,
Add hook so system-deps can internally build library name if requested by user.
It will only be triggered if the environment variable
SYSTEM_DEPS_$NAME_BUILD_INTERNAL is defined with either always or
auto as value. In the latter case, func is called only if the requested
version of the library was not found on the system.
Arguments
name: the name of the library, as defined inCargo.tomlfunc: closure called when internally building the library. It receives as argument the library name and the minimum version required.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Config
impl !Send for Config
impl !Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,