pub struct NativeArtifacts {
pub static_libs: Vec<NativeLib>,
pub cargo_directives: Vec<String>,
pub dep_env_vars: BTreeMap<String, String>,
pub out_dir_files: Vec<OutDirFile>,
}Expand description
Build script outputs for crates with C/C++ dependencies.
This is what makes -sys crate caching possible. All fields are
captured from the build script output directory in CI and replayed
on the client machine.
Fields§
§static_libs: Vec<NativeLib>Static libraries (.a / .lib files) produced by the build script.
cargo_directives: Vec<String>All cargo: directives from the build script output.
Includes rustc-link-lib, rustc-link-search, rustc-cfg, rustc-env, etc.
Excludes rerun-if-* directives (irrelevant for cached artifacts).
dep_env_vars: BTreeMap<String, String>DEP_CRATENAME_KEY=VALUE environment variables for downstream crates.
out_dir_files: Vec<OutDirFile>Generated files from the build script’s OUT_DIR.
Stored as (relative_path, contents) pairs.
Trait Implementations§
Source§impl Clone for NativeArtifacts
impl Clone for NativeArtifacts
Source§impl Debug for NativeArtifacts
impl Debug for NativeArtifacts
Source§impl<'de> Deserialize<'de> for NativeArtifacts
impl<'de> Deserialize<'de> for NativeArtifacts
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
impl Eq for NativeArtifacts
Source§impl PartialEq for NativeArtifacts
impl PartialEq for NativeArtifacts
Source§impl Serialize for NativeArtifacts
impl Serialize for NativeArtifacts
impl StructuralPartialEq for NativeArtifacts
Auto Trait Implementations§
impl Freeze for NativeArtifacts
impl RefUnwindSafe for NativeArtifacts
impl Send for NativeArtifacts
impl Sync for NativeArtifacts
impl Unpin for NativeArtifacts
impl UnsafeUnpin for NativeArtifacts
impl UnwindSafe for NativeArtifacts
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.