commit | 886d8ea9b5238dbff92b52f71cf8f998f5c51dfd | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Tue Sep 13 08:34:07 2016 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Tue Sep 13 08:34:07 2016 -0700 |
tree | 3caeb038eeee650983e28bd398f0e695acd7a11e | |
parent | edd06648ce183035c2d6f7e3b9a206d658569225 [diff] |
Move string escape to its own mod
Parse Rust structs and enums without a Syntex dependency, intended for use with Macros 1.1.
Designed for fast compile time.
syn
(from scratch including all dependencies): 6 secondssyntex
/quasi
/aster
stack: 60+ seconds[dependencies] syn = "0.5"
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).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.