Skip to main content

Crate astrid_sys

Crate astrid_sys 

Source
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 traitGuest trait that capsules implement
  • export! macro — wires a Guest implementation 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§

astrid

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.

Traits§

Guest

Type Aliases§

CapsuleResult