darling_macro-0.10.2/Cargo.toml.orig010064400027200000024000000007331355634035000155010ustar0000000000000000[package] name = "darling_macro" version = "0.10.2" authors = ["Ted Driggs "] repository = "https://github.com/TedDriggs/darling" description = """ Internal support for a proc-macro library for reading attributes into structs when implementing custom derives. Use https://crates.io/crates/darling in your code. """ license = "MIT" [dependencies] quote = "1" syn = "1" darling_core = { version = "=0.10.2", path = "../core" } [lib] proc-macro = true darling_macro-0.10.2/Cargo.toml0000644000000017740000000000000117630ustar00# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies # # If you believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] name = "darling_macro" version = "0.10.2" authors = ["Ted Driggs "] description = "Internal support for a proc-macro library for reading attributes into structs when\nimplementing custom derives. Use https://crates.io/crates/darling in your code.\n" license = "MIT" repository = "https://github.com/TedDriggs/darling" [lib] proc-macro = true [dependencies.darling_core] version = "=0.10.2" [dependencies.quote] version = "1" [dependencies.syn] version = "1" darling_macro-0.10.2/LICENSE010064400027200000024000000020531344377670500136300ustar0000000000000000MIT License Copyright (c) 2017 Ted Driggs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. darling_macro-0.10.2/src/lib.rs010064400027200000024000000024151342667215400145220ustar0000000000000000extern crate proc_macro; #[macro_use] extern crate syn; extern crate darling_core; use proc_macro::TokenStream; use darling_core::{derive, Error}; #[proc_macro_derive(FromMeta, attributes(darling))] pub fn derive_from_meta(input: TokenStream) -> TokenStream { derive::from_meta(&parse_macro_input!(input)).into() } #[proc_macro_derive(FromMetaItem, attributes(darling))] pub fn derive_from_meta_item(_input: TokenStream) -> TokenStream { Error::custom("darling::FromMetaItem has been replaced by darling::FromMeta") .write_errors() .into() } #[proc_macro_derive(FromDeriveInput, attributes(darling))] pub fn derive_from_input(input: TokenStream) -> TokenStream { derive::from_derive_input(&parse_macro_input!(input)).into() } #[proc_macro_derive(FromField, attributes(darling))] pub fn derive_field(input: TokenStream) -> TokenStream { derive::from_field(&parse_macro_input!(input)).into() } #[proc_macro_derive(FromTypeParam, attributes(darling))] pub fn derive_type_param(input: TokenStream) -> TokenStream { derive::from_type_param(&parse_macro_input!(input)).into() } #[proc_macro_derive(FromVariant, attributes(darling))] pub fn derive_variant(input: TokenStream) -> TokenStream { derive::from_variant(&parse_macro_input!(input)).into() } darling_macro-0.10.2/.cargo_vcs_info.json0000644000000001120000000000000137460ustar00{ "git": { "sha1": "c0e0cfdd75964ec355b1df0e71421c32281fa8a8" } }