1mod args;
2mod attribute;
3mod derive;
4
5use proc_macro2::TokenStream;
6use syn::Error;
7
8/// The annotation for pinned type.
9const PIN: &str = "pin";
10
11pub(crate) fn attribute(args: &TokenStream, input: TokenStream) -> TokenStream {
12 attribute::parse_attribute(args, input).unwrap_or_else(Error::into_compile_error)
13}
14
15pub(crate) fn derive(input: TokenStream) -> TokenStream {
16 derive::parse_derive(input).unwrap_or_else(Error::into_compile_error)
17}
18