Crate lightning_macros

Crate lightning_macros 

Source
Expand description

Proc macros used by LDK

Macros§

drop_legacy_field_definition
Scans an enum definition for fields initialized with legacy types and drops them.
maybe_await
Awaits, if the async-interface feature is enabled.
skip_legacy_fields
Scans a match statement for legacy fields which should be skipped.
xtest_inventory
Collects all externalized tests marked with #[xtest] into a vector of XTestItems. This vector can be retrieved by calling get_xtests().

Attribute Macros§

maybe_async
Makes a method async, if the async-interface feature is enabled.
xtest
An exposed test. This is a test that will run locally and also be made available to other crates that want to run it in their own context.