commit | da4049bdb5af4a87b6136683f6bf20d0e9dcc60f | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sun Sep 04 10:59:23 2016 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sun Sep 04 10:59:23 2016 -0700 |
tree | 8a28f31be0e8dd8880a752009ed35f069191309c | |
parent | 6b7aaf0c143410d0f2a5fe97ec9286e3b13e0b8a [diff] |
Split up type-parsing function
Parse Rust structs and enums without a Syntex dependency, intended for use with Macros 1.1.
[dependencies] item = "0.1"
extern crate item; let raw = " #[derive(Debug, Clone)] pub struct Item { pub ident: Ident, pub attrs: Vec<Attribute>, } "; let ast = item::parse(raw).unwrap();
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.