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: ContractThe 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: PathBufThe 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: StringThe 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: StringThe preparation fingerprint, including build environment and local paths. This is build provenance, not a portable package revision.