scrypto-bindgen 1.4.0

A library for generating Scrypto bindings.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[macro_export]
macro_rules! token_stream_from_str {
    ($string: expr) => {
        <proc_macro2::TokenStream as std::str::FromStr>::from_str($string)
            .expect("Obtained from schema, must be valid!")
    };
}

#[macro_export]
macro_rules! ident {
    ($ident: expr) => {
        syn::Ident::new($ident, proc_macro2::Span::call_site())
    };
}