Skip to main content

Crate etchdb_derive

Crate etchdb_derive 

Source
Expand description

Derive macros for etchdb.

Generates Replayable and Transactable implementations from annotated structs, eliminating ~60 lines of boilerplate per state type.

Derive Macrosยง

Replayable
Derive Replayable for a struct with #[etch(collection = N)] fields.
Transactable
Derive Transactable for a struct with #[etch(collection = N)] fields.