BuildInfo

Struct BuildInfo 

Source
pub struct BuildInfo { /* private fields */ }

Implementations§

Source§

impl BuildInfo

Source

pub fn read_build_info<P: AsRef<Path>>(path: P) -> Result<Self>

Source

pub fn target(&self) -> &'static str

Source

pub fn arch(&self) -> &str

Source

pub fn os(&self) -> &str

Source

pub fn all_deps(&self) -> impl Iterator<Item = &str> + Clone

Source

pub fn get_depends_on<'a, I: IntoIterator<Item = &'a str>>( &self, packages: I, ) -> DependsOn

Source

pub fn get_depends_on_package(&self, package: &str) -> DependsOn

Source

pub fn is_shared(&self, lib: &str) -> bool

Source

pub fn libdir_for(&self, package: &str) -> Vec<&str>

Source

pub fn libdir_for_package(value: &Value) -> impl Iterator<Item = &str>

Source

pub fn libs_for(&self, package: &str) -> Vec<&str>

Source

pub fn includes_for(&self, package: &str) -> Vec<&str>

Source

pub fn bindir_for(&self, package: &str) -> Vec<&str>

Source

pub fn rootpath_for(&self, package: &str) -> &str

Source

pub fn package(&self, package: &str) -> &Value

Source

pub fn try_package(&self, package: &str) -> Option<&Value>

Source

pub fn write_env_source<W1, W2>( &self, is_host: bool, sh: W1, ps1: W2, ) -> Result<()>
where W1: Write, W2: Write,

Source

pub fn libcxx(&self) -> impl Iterator<Item = Lib> + use<'_>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.