urid-derive 0.1.1

Procedural macros for urid
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Procedural macros for `urid`.
#![recursion_limit = "128"]
extern crate proc_macro;

mod uri_bound;
mod urid_collection_derive;

use proc_macro::TokenStream;

#[proc_macro_derive(URIDCollection)]
pub fn urid_collection_derive(input: TokenStream) -> TokenStream {
    urid_collection_derive::urid_collection_derive_impl(input)
}

#[proc_macro_attribute]
pub fn uri(attr: TokenStream, item: TokenStream) -> TokenStream {
    uri_bound::impl_uri_bound(attr, item)
}