inkpad-derive 0.1.0

derive macros for inkpad
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
extern crate proc_macro;
use proc_macro::TokenStream;

mod arg;
mod attr;
mod fun;

/// Derive custom function to wasm host functions
#[proc_macro_attribute]
pub fn host(attr: TokenStream, item: TokenStream) -> TokenStream {
    attr::host::parse(attr, item)
}