Expand description
Component Model bindings for the Astrid OS System API (The Airlocks).
This crate generates typed guest bindings from the astrid-capsule.wit
interface using wit-bindgen. It provides:
- Host import functions — typed calls to the kernel (fs, ipc, kv, etc.)
- Guest export trait —
Guesttrait that capsules implement export!macro — wires aGuestimplementation as component exports- WIT types — generated Rust structs for all WIT records
Capsule authors typically use astrid-sdk (the ergonomic wrapper) rather
than this crate directly. The #[capsule] proc macro generates the
impl Guest and export!() call automatically.
Modules§
Macros§
- __
export_ capsule_ impl - Generates
#[unsafe(no_mangle)]functions to export the specified type as the root implementation of all generated traits. - export
- Generates
#[unsafe(no_mangle)]functions to export the specified type as the root implementation of all generated traits.