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

#4 in #cw-storage-plus

Download history 244/week @ 2024-07-29 253/week @ 2024-08-05 188/week @ 2024-08-12 166/week @ 2024-08-19 120/week @ 2024-08-26 218/week @ 2024-09-02 196/week @ 2024-09-09 296/week @ 2024-09-16 133/week @ 2024-09-23 209/week @ 2024-09-30 134/week @ 2024-10-07 152/week @ 2024-10-14 139/week @ 2024-10-21 110/week @ 2024-10-28 112/week @ 2024-11-04 95/week @ 2024-11-11

464 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

~230–660KB
~16K SLoC