11 releases (5 stable)

2.0.0 Mar 14, 2024
2.0.0-beta.0 Jan 23, 2024
1.2.0 Nov 14, 2023
1.1.0 Jun 13, 2023
0.14.0 Jul 28, 2022

#33 in #macro-helpers

Download history 25/week @ 2024-01-01 73/week @ 2024-01-08 125/week @ 2024-01-15 47/week @ 2024-01-22 77/week @ 2024-01-29 127/week @ 2024-02-05 162/week @ 2024-02-12 147/week @ 2024-02-19 190/week @ 2024-02-26 66/week @ 2024-03-04 182/week @ 2024-03-11 40/week @ 2024-03-18 64/week @ 2024-03-25 142/week @ 2024-04-01 56/week @ 2024-04-08 78/week @ 2024-04-15

343 downloads per month
Used in 11 crates (2 directly)

Apache-2.0

4KB

CW-Storage-Plus: Macro helpers for storage-plus

Procedural macros helper for interacting with cw-storage-plus and cosmwasm-storage.

Current features

Auto generate an IndexList impl for your indexes struct.

#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
struct TestStruct {
    id: u64,
    id2: u32,
    addr: Addr,
}

#[index_list(TestStruct)] // <- Add this line right here.
struct TestIndexes<'a> {
    id: MultiIndex<'a, u32, TestStruct, u64>,
    addr: UniqueIndex<'a, Addr, TestStruct, String>,
}

lib.rs:

Procedural macros helper for interacting with cw-storage-plus and cosmwasm-storage.

For more information on this package, please check out the README.

Dependencies

~300–730KB
~18K SLoC