embassy-supervisor-macros 0.2.0

Proc-macro for embassy-supervisor: declares a task graph and computes its topological order at compile time.
Documentation

embassy-supervisor-macros

crates.io docs.rs

The supervisor_graph! proc-macro for embassy-supervisor: declare a supervised task graph once, and get the node statics plus a single GRAPH bundle whose topological order is computed at compile time. The whole graph is validated at compile time: dependency cycles, unknown or duplicate dependencies, duplicate node/pool names, unknown executor: slots, malformed spawn forms, and pool bounds (min <= max <= member count, 256-slot cap) are all spanned compile errors — see the full list.

Do not depend on this crate directly. Use embassy-supervisor with its default macros feature, which re-exports the macro and forwards the pool feature here. The macro's output references embassy-supervisor internals, so the supervisor pins this crate by exact version — the pair it was tested with.

See the embassy-supervisor documentation for the macro's surface syntax and examples, and this crate's CHANGELOG for what each release adds (0.2.0: executor: slots, pool-name deps, trace spawn glue, duplicate-dep/name rejection).

License

Dual-licensed under either MIT or Apache-2.0, at your option.