summaryrefslogtreecommitdiff
path: root/dhall_proc_macros/src/lib.rs
blob: 54dba729056f7875d750ffab8d8afc490f28bdeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![doc(html_root_url = "https://docs.rs/dhall_proc_macros/0.5.1")]
#![allow(clippy::unnecessary_wraps)]
//! This crate contains the code-generation primitives for the [dhall-rust][dhall-rust] crate.
//! This is highly unstable and breaks regularly; use at your own risk.
//!
//! [dhall-rust]: https://github.com/Nadrieril/dhall-rust

mod derive;

use proc_macro::TokenStream;

#[proc_macro_derive(StaticType)]
pub fn derive_static_type(input: TokenStream) -> TokenStream {
    derive::derive_static_type(input)
}