entropic-derive 0.1.1

Traits for converting Rust data structures to/from unstructured bytes
Documentation
1
2
3
4
5
6
7
8
9
10
11
mod ent;

use proc_macro::TokenStream;

#[proc_macro_derive(Entropic)]
pub fn derive_entropic(input: TokenStream) -> TokenStream {
    let parsed_input = syn::parse_macro_input!(input as syn::DeriveInput);
    ent::expand_derive_entropic(parsed_input)
        .unwrap_or_else(syn::Error::into_compile_error)
        .into()
}