Struct escargot::format::BuildScript
source · #[non_exhaustive]pub struct BuildScript<'a> {
pub package_id: WorkspaceMember<'a>,
pub out_dir: Option<Cow<'a, Path>>,
pub linked_libs: Vec<Cow<'a, str>>,
pub linked_paths: Vec<Cow<'a, Path>>,
pub cfgs: Vec<Cow<'a, Path>>,
pub env: Vec<(Cow<'a, str>, Cow<'a, str>)>,
}
Expand description
Output of a Build Script execution.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.package_id: WorkspaceMember<'a>
The workspace member this build script execution belongs to
out_dir: Option<Cow<'a, Path>>
The outdir used.
linked_libs: Vec<Cow<'a, str>>
The libs to link
linked_paths: Vec<Cow<'a, Path>>
The paths to search when resolving libs
cfgs: Vec<Cow<'a, Path>>
The paths to search when resolving libs
env: Vec<(Cow<'a, str>, Cow<'a, str>)>
The environment variables to add to the compilation
Trait Implementations§
source§impl<'a> Clone for BuildScript<'a>
impl<'a> Clone for BuildScript<'a>
source§fn clone(&self) -> BuildScript<'a>
fn clone(&self) -> BuildScript<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for BuildScript<'a>
impl<'a> Debug for BuildScript<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for BuildScript<'a>
impl<'de: 'a, 'a> Deserialize<'de> for BuildScript<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> PartialEq for BuildScript<'a>
impl<'a> PartialEq for BuildScript<'a>
source§fn eq(&self, other: &BuildScript<'a>) -> bool
fn eq(&self, other: &BuildScript<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for BuildScript<'a>
impl<'a> Serialize for BuildScript<'a>
impl<'a> Eq for BuildScript<'a>
impl<'a> StructuralPartialEq for BuildScript<'a>
Auto Trait Implementations§
impl<'a> Freeze for BuildScript<'a>
impl<'a> RefUnwindSafe for BuildScript<'a>
impl<'a> Send for BuildScript<'a>
impl<'a> Sync for BuildScript<'a>
impl<'a> Unpin for BuildScript<'a>
impl<'a> UnwindSafe for BuildScript<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)