darling_core 0.1.0

Helper crate for proc-macro library for reading attributes into structs when implementing custom derives. Use `darling` to get library functionality.
Documentation
1
2
3
4
5
6
7
8
9
use syn::DeriveInput;

use Result;

/// Creates an instance by parsing an entire proc-macro `derive` input,
/// including the, identity, generics, and visibility of the type.
pub trait FromDeriveInput: Sized {
    fn from_derive_input(input: &DeriveInput) -> Result<Self>;
}