Skip to content

Commit dd9f2cc

Browse files
committed
Use an actual Rust parser for the match_token! macro.
1 parent e28e8a2 commit dd9f2cc

File tree

6 files changed

+458
-206
lines changed

6 files changed

+458
-206
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ harness = false
3333
[features]
3434
unstable = ["tendril/unstable", "string_cache/unstable"]
3535
heap_size = ["heapsize", "heapsize_plugin"]
36-
codegen = [] # Now unused, remove at the next breaking change
3736

3837
[dependencies]
3938
log = "0"
@@ -50,7 +49,9 @@ rustc-test = "0.1.3"
5049

5150
[build-dependencies]
5251
phf_codegen = "0.7.3"
52+
quote = "0.3"
5353
rustc-serialize = "0.3.15"
54+
syn = { version = "0.9.1", features = ["full", "visit"]}
5455

5556
[profile.dev]
5657
debug = false

build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// except according to those terms.
99

1010
extern crate phf_codegen;
11+
#[macro_use] extern crate quote;
1112
extern crate rustc_serialize;
13+
extern crate syn;
1214

1315
use rustc_serialize::json::{Json, Decoder};
1416
use rustc_serialize::Decodable;

0 commit comments

Comments
 (0)