commit | 42f5029fee7ec1df199e8c1f77efaa2c45ab3def | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sun Sep 04 13:54:21 2016 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sun Sep 04 13:54:21 2016 -0700 |
tree | 9d9feb5fc4075243f713dad01e9392864acd736b | |
parent | 94ebdf913b78426e887fa5565c59a11ab06fc031 [diff] |
Newtype ident
Parse Rust structs and enums without a Syntex dependency, intended for use with Macros 1.1.
[dependencies] item = "0.2"
extern crate item; let raw = " #[derive(Debug, Clone, Eq, PartialEq)] pub struct Item { pub ident: Ident, pub vis: Visibility, pub attrs: Vec<Attribute>, pub generics: Generics, pub body: Body, } "; let ast = item::parse(raw);
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.