pub enum ExportKind {
Cargo,
CratesVendor,
BazelRegistry,
BazelDistdir,
Vsix,
Sdk,
}Expand description
Which export adapter an [[export]] entry names (REQ-EXPORTDECL-001
clause 2).
The wire strings are exactly the ones the adapters already write into
.varve-export.json, so a declaration and the stamp it is checked against
are comparable without a translation table — a table is a place for the two
to drift, and drift here would make verify pass on a directory produced by
a different adapter entirely.
Variants§
Implementations§
Source§impl ExportKind
impl ExportKind
Sourcepub const ALL: &'static [ExportKind]
pub const ALL: &'static [ExportKind]
Every kind, for diagnostics that must say what WOULD have worked.
pub fn as_str(self) -> &'static str
Sourcepub fn is_sourced(self) -> bool
pub fn is_sourced(self) -> bool
Is this payload CONSUMED by entering an environment rather than by pointing at a path (clause 4)?
A Yocto SDK is sourced: environment-setup-* sets CC, SYSROOT and
CFLAGS and prepends its own bin to PATH. A local Cargo registry or a
distdir is not — a config file points at it. Only a sourced export may
carry an [export.env], because on anything else the block would be
accepted, ignored, and believed.
Trait Implementations§
Source§impl Clone for ExportKind
impl Clone for ExportKind
Source§fn clone(&self) -> ExportKind
fn clone(&self) -> ExportKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more