Skip to content

perf(macros): use #[sails_rs::event] macro to generate encoding code for event, remove runtime BTreeMaps #941

Open
@vobradovich

Description

@vobradovich

File Location(s)

No response

Proposal

Use #[sails_rs::event] macro to generate encoding code for event, remove runtime BTreeMaps

#[sails_rs::event]
pub enum CounterEvents {
    /// Emitted when a new value is added to the counter
    Added(u32),
    /// Emitted when a value is subtracted from the counter
    Subtracted(u32),
}

Metadata

Metadata

Assignees

Labels

rustPull requests that update Rust code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions