Skip to main content

Exported

Struct Exported 

Source
pub struct Exported {
    pub contract: Contract,
    pub sources: BTreeMap<PathBuf, String>,
    pub executable: PathBuf,
    pub inputs: BTreeMap<String, String>,
    pub digest: String,
    pub build_inputs: BTreeMap<String, String>,
    pub build_fingerprint: String,
}
Expand description

A crate’s exported launcher and contract, copied out of its cache.

Fields§

§contract: Contract

The library’s contract.

§sources: BTreeMap<PathBuf, String>

Each source file of the crate’s pub mod tree, by its canonical path, mapped to the library module path it defines.

§executable: PathBuf

The standalone launcher in the destination directory. It serves every module’s Tools with --contract FILE.

§inputs: BTreeMap<String, String>

The SHA-256 digest of each file the library’s implementation is built from, by its path relative to the library root with / between components: each file of the library and of its local path dependencies the build compiled, and the Cargo manifests, locks and toolchain files that select them, up to the project root. A directory a build script watches has the digest of the files beneath it, and a path it watches that does not exist yet is absent. A local package with a build script is named by its root with a trailing / (./, ../shared/), with the digest of every file it holds.

§digest: String

The digest of those files, each by its relative path and contents: the same sources give the same digest on any machine and in any checkout location.

§build_inputs: BTreeMap<String, String>

Digests of Cargo configuration inputs, keyed by logical search location. These affect native build provenance rather than package source identity.

§build_fingerprint: String

The preparation fingerprint, including build environment and local paths. This is build provenance, not a portable package revision.

Trait Implementations§

Source§

impl Debug for Exported

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for Exported

§

impl Freeze for Exported
where *const u8 is !null: Freeze, PhantomData<Module>: Freeze, *const LeafNode<PathBuf, String> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(PathBuf, String)>>: Freeze, PhantomData<u8>: Freeze, *const LeafNode<String, String> is !null: Freeze, PhantomData<Box<(String, String)>>: Freeze,

§

impl Move for Exported

§

impl RefUnwindSafe for Exported

§

impl Send for Exported
where RawVecInner: Send, BoxRaw<Constant>: Send, NodeRef<Owned, PathBuf, String, LeafOrInternal>: Send, BoxRaw<(PathBuf, String)>: Send, NodeRef<Owned, String, String, LeafOrInternal>: Send, BoxRaw<(String, String)>: Send,

§

impl Sync for Exported
where RawVecInner: Sync, BoxRaw<Constant>: Sync, NodeRef<Owned, PathBuf, String, LeafOrInternal>: Sync, BoxRaw<(PathBuf, String)>: Sync, NodeRef<Owned, String, String, LeafOrInternal>: Sync, BoxRaw<(String, String)>: Sync,

§

impl Unpin for Exported
where *const u8 is !null: Unpin, Box<Constant>: Unpin, *const LeafNode<PathBuf, String> is !null: Unpin, Box<(PathBuf, String)>: Unpin, *const LeafNode<String, String> is !null: Unpin, Box<(String, String)>: Unpin,

§

impl UnsafeUnpin for Exported

§

impl UnwindSafe for Exported

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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.