Macros§
Attribute Macros§
- The sim_test macro will invoke
#[msim::test]
if the simulator config var is enabled. - The sui_test macro will invoke either
#[msim::test]
or#[tokio::test]
, depending on whether the simulator config var is enabled.
Derive Macros§
- This proc macro generates a function
order_to_variant_map
which returns a map of the position of each variant to the name of the variant. It is intended to catch changes in enum order when backward compat is required.