docs.rs failed to build sov-modules-macros-0.3.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
sov-modules-macros-0.2.0
sov-modules-macros
This crate provides Rust macros specifically designed to be used with the Module System. When developing a module, the developer's primary focus should be on implementing the business logic, without having to worry about low-level details such as message serialization/deserialization or how messages are dispatched to the appropriate module.
To alleviate the burden of writing repetitive and mechanical code, this crate offers a collection of macros that generate the necessary boilerplate code.
The following derive macros are supported:
- The
ModuleInfo
: Derives thesov-modules-api::ModuleInfo
implementation for the underlying type. - The
Genesis
: Derives thesov-modules-api::Genesis
implementation for the underlying type. - The
DispatchCall
: Derives thesov-modules-api::DispatchCall
implementation for the underlying type. - The
MessageCodec
: Adds message serialization/deserialization functionality to the underlying type.
The definitions of the traits mentioned above can be found in the sov-modules-api crate.
Example usage:
/// Runtime is a collection of sov modules defined in the rollup.
/// `Genesis` allow initialization of the rollup in following way:
runtime.genesis
/// `DispatchCall & MessageCodec` allows dispatching serialized messages to the appropriate module.
let call_result = RT decode_call