cw_storage_macro/lib.rs
1/*!
2Procedural macros helper for interacting with cw-storage-plus and cosmwasm-storage.
3
4For more information on this package, please check out the
5[README](https://github.com/CosmWasm/cw-storage-plus/blob/main/macros/README.md).
6*/
7
8mod index_list;
9mod newtype;
10
11use proc_macro::TokenStream;
12
13// Re-export the procedural macro functions
14
15#[proc_macro_attribute]
16pub fn index_list(attr: TokenStream, item: TokenStream) -> TokenStream {
17 index_list::index_list(attr, item)
18}
19
20#[proc_macro_derive(NewTypeKey)]
21pub fn cw_storage_newtype_key_derive(input: TokenStream) -> TokenStream {
22 newtype::cw_storage_newtype_key_derive(input)
23}