Crate sui_proc_macros
sui_
proc_
macros
0.7.0
All Items
Crate Items
Macros
Attribute Macros
Derive Macros
Crate
sui_
proc_
macros
Copy item path
Source
Macros
§
checked_
arithmetic
Attribute Macros
§
init_
static_
initializers
sim_
test
The sim_test macro will invoke
#[msim::test]
if the simulator config var is enabled.
sui_
test
The sui_test macro will invoke either
#[msim::test]
or
#[tokio::test]
, depending on whether the simulator config var is enabled.
with_
checked_
arithmetic
Derive Macros
§
Enum
Variant
Order
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.