pub struct LockEntry {Show 14 fields
pub name: String,
pub path: String,
pub enabled: bool,
pub capabilities: Option<Vec<String>>,
pub sha256: String,
pub upstream_sha256: Option<String>,
pub source: String,
pub version: Option<String>,
pub cwasm_path: Option<String>,
pub wasmtime_version: Option<String>,
pub target_triple: Option<String>,
pub engine_config_hash: Option<String>,
pub required_capabilities: Option<Vec<String>>,
pub implemented_hooks: Option<Vec<String>>,
}Fields§
§name: String§path: String§enabled: bool§capabilities: Option<Vec<String>>§sha256: StringSHA-256 of the on-disk .wasm file. With the v0.2.0 component
model migration the file is no longer a Mach-O / ELF binary, so
this hash is identical to upstream_sha256 (no local re-signing
step). Both fields are kept for round-trip compatibility with
older lockfiles.
upstream_sha256: Option<String>SHA-256 of the asset as served by the upstream source. Stable
across machines; detects silent upstream replacement at
re-download time. None for local plugins or lock entries
written before this field existed.
source: String§version: Option<String>§cwasm_path: Option<String>Path to the precompiled .cwasm next to the source .wasm.
Used by the host’s cache validator to skip re-precompiling at
startup. None when precompile failed during sync (host falls
back to in-memory Component::new in that case).
wasmtime_version: Option<String>Wasmtime version that produced the cwasm_path artifact. Part
of the four-tuple cache key; the host rejects the cwasm if its
own pin differs.
target_triple: Option<String>Target triple the cwasm was precompiled for. Cwasm files are not portable across triples, so the host rejects mismatches.
engine_config_hash: Option<String>Hex-encoded SHA-256 of the engine config fingerprint. Lets the
host detect when its wasmtime::Config changed since the cwasm
was written.
required_capabilities: Option<Vec<String>>Plugin-self-reported capability strings extracted at sync time.
Cached so yosh-plugin list can show capabilities without
instantiating each plugin.
implemented_hooks: Option<Vec<String>>Plugin-self-reported hook names extracted at sync time. Same
caching rationale as required_capabilities.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LockEntry
impl<'de> Deserialize<'de> for LockEntry
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>,
impl StructuralPartialEq for LockEntry
Auto Trait Implementations§
impl Freeze for LockEntry
impl RefUnwindSafe for LockEntry
impl Send for LockEntry
impl Sync for LockEntry
impl Unpin for LockEntry
impl UnsafeUnpin for LockEntry
impl UnwindSafe for LockEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more