Skip to main content

Crate commonware_macros

Crate commonware_macros 

Source
Expand description

Augment the development of primitives with procedural macros.

This crate provides:

Macros§

select
Select the first future that completes (biased by order).
select_loop
Convenience macro to continuously select! over a set of futures in biased order, with a required shutdown handler.
stability_mod
Marks a module with a stability level.
stability_scope
Marks all items within a scope with a stability level and optional cfg predicate.

Attribute Macros§

stability
Marks an item with a stability level.
test_async
Run a test function asynchronously.
test_collect_traces
Capture logs from a test run into an in-memory store.
test_group
Prefix a test name with a nextest filter group.
test_traced
Capture logs (based on the provided log level) from a test run using libtest’s output capture functionality.