Skip to main content

Crate airbender_macros

Crate airbender_macros 

Source
Expand description

§airbender-macros Build status License: MIT OR Apache-2.0 rust nightly required proc macro crate

Documentation: API docs | Guest program guide

[!WARNING] airbender-platform project is under active development and is in alpha state. Use at your own risk.

[!NOTE] Support crate. Most guest applications should depend on airbender-sdk instead, which re-exports #[airbender::main] and all guest APIs through a single dependency.

airbender-macros implements the procedural macros used by Airbender guest programs. In practice, most projects reach this crate through airbender-sdk, which re-exports #[airbender::main].

§What It Provides

  • #[airbender::main], the guest entrypoint attribute.
  • Compile-time validation that the annotated function is synchronous, takes no arguments, and returns a committable value.
  • Generated _start_rust entrypoint wiring, including optional custom allocator initialization.

§Usage

Most guest applications should depend on the SDK:

[dependencies]
airbender = { package = "airbender-sdk", git = "https://github.com/matter-labs/airbender-platform", branch = "main" }

Direct use of airbender-macros is uncommon because the generated code targets the airbender SDK re-export surface.

§License

Licensed under either Apache License, Version 2.0 or MIT license at your option.

Attribute Macros§

main