Skip to main content

Crate astrid_capsule

Crate astrid_capsule 

Source
Expand description

Core runtime management for User-Space Capsules in Astrid OS.

Core capsule runtime implementing the “Manifest-First” architecture. It provides the definition for Capsule.toml manifests, handles discovery, and routes execution to the appropriate environments (WASM sandboxes or legacy host processes).

Re-exports§

pub use engine::wasm::limits::CapsuleRuntimeLimits;
pub use fuel_ledger::FuelLedger;
pub use fuel_ledger::FuelRateLimiter;
pub use memory_ledger::MemoryLedger;
pub use memory_ledger::StoreMemoryMeter;

Modules§

capsule
Capsule trait and core types.
context
Capsule context types.
discovery
Capsule manifest discovery from standard locations.
dispatcher
Event dispatcher for routing events to capsule interceptors.
engine
Execution engine trait for Composite Capsules.
error
fuel_ledger
Shared per-principal CPU accounting ledger.
loader
Factory and routing logic for instantiating Composite Capsules.
manifest
Capsule manifest types.
memory_ledger
Shared per-principal peak-memory accounting ledger + the per-Store limiter that feeds it.
principal_class
Bounded principal-class label for telemetry and IPC host-fn audit labels. Used only for emitting bounded-cardinality metrics labels (3 buckets) — dispatcher routing (mpsc queues and chain_locks) is now keyed on the unbounded PrincipalKey so distinct user principals do not collide on a single class-keyed queue.
profile_cache
Process-lifetime cache of PrincipalProfile values, keyed by PrincipalId.
registry
Capsule registry.
schema_catalog
Topic schema catalog for A2UI integration.
security
Security gate trait for capsule host function calls.
topic
IPC topic matching for interceptor event patterns.
toposort
Topological sort for capsule dependency ordering.