Skip to main content

Crate alef_component_runtime

Crate alef_component_runtime 

Source
Expand description

Verified artifact installation and dynamic loading for Alef native components.

Structs§

ArtifactCache
CachedArtifact
ComponentArtifactRecord
ComponentIdentity
ComponentInstance
A live instance created by a component, paired with its typed C function table.
ComponentLibrary
ComponentLock
ComponentLockEntry
ComponentManager
ComponentManifest
ComponentProvidedContract
One contract a component provides, alongside the Rust type implementing it.
ComponentRequirements
What a loaded component’s descriptor must match.
ComponentSignature
LoadedComponent
Runtime
VerifyingKey
An ed25519 public key.

Enums§

ComponentDeliveryMode
Whether a component is downloaded on demand or must be linked into the binding ahead of time. alef’s config-resolution code (alef::codegen::component) re-exports this type and exposes it on the resolved component config as a forward-looking hook; no loader or backend acts on Bundled yet.
ComponentError
ComponentStatus
Where a configured component currently stands, independent of its on-disk location (see ComponentManager::cache_path for that). Generated bindings expose this as both a stable string tag and a numeric code (alef_component_status/alef_component_status_code in alef::backends::native_components) so callers in any host language can branch on it without parsing free-form text.
TrustPolicy

Constants§

COMPONENT_ABI_VERSION
COMPONENT_MANIFEST_SCHEMA

Functions§

canonical_json
decode_public_key
Decode an Ed25519 public key from PEM, or from base64-encoded (standard or unpadded) raw 32-byte / DER SubjectPublicKeyInfo bytes.
take_owned_bytes⚠
Copy an owned buffer’s bytes into a Vec<u8> and release the original allocation through its own free callback.
take_owned_text⚠
Like take_owned_bytes, but lossily decodes the bytes as UTF-8.