Crates.io | matterdb-derive |
lib.rs | matterdb-derive |
version | 1.0.0 |
source | src |
created_at | 2021-04-12 15:24:21.715304 |
updated_at | 2021-04-12 15:24:21.715304 |
description | Procedural macros for matterdb. |
homepage | |
repository | https://github.com/popzxc/matterdb |
max_upload_size | |
id | 382435 |
size | 29,498 |
This crate provides several procedural macros for MatterDB.
Overview of presented macros:
BinaryValue
: derive macro for BinaryValue
trait of MerkleDB.
The implementation uses serde
traits using bincode
.FromAccess
: derive macro for FromAccess
trait for schemas of
MerkleDB indexes.Consult the crate docs for more details.
Include matterdb-derive
as a dependency in your Cargo.toml
:
[dependencies]
matterdb-derive = "1.0.0"
matterdb-derive
is licensed under the Apache License (Version 2.0).
See LICENSE for details.