Module sov_modules_api::macros

source ·
Expand description

Procedural macros to assist with creating new modules.

Derive Macros

  • Derives a custom Default implementation for the underlying type. We decided to implement a custom macro DefaultRuntime that would implement a custom Default trait for the Runtime because the stdlib implementation of the default trait imposes the generic arguments to have the Default trait, which is not needed in our case.