commit | 2923037058307a8036dce6211fe66ed59a085e74 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Wed Sep 07 08:25:41 2016 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Wed Sep 07 08:25:41 2016 -0700 |
tree | 8d461f1fcf3db6326b3b4756de93f4fc7d8ce451 | |
parent | a09760892eed0e27fb94ebe4331ad5344515056b [diff] |
Hide do_parse macro from docs
Parse Rust structs and enums without a Syntex dependency, intended for use with Macros 1.1.
[dependencies] syn = "0.4"
extern crate syn; 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 = syn::parse_item(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.