Skip to content

Commit 5c72f89

Browse files
committed
build: Make match_byte a proper proc-macro.
Now these are stable. Fix a bunch of warnings that this exposed. This seems still a valuable optimization from looking at existing benchmarks.
1 parent b0c1761 commit 5c72f89

File tree

8 files changed

+181
-304
lines changed

8 files changed

+181
-304
lines changed

Cargo.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ repository = "https://github.com/servo/rust-cssparser"
99
readme = "README.md"
1010
keywords = ["css", "syntax", "parser"]
1111
license = "MPL-2.0"
12-
build = "build.rs"
1312
edition = "2018"
1413
rust-version = "1.63"
1514

@@ -35,7 +34,7 @@ proc-macro2 = "1"
3534

3635
[features]
3736
bench = []
38-
dummy_match_byte = []
37+
dummy_match_byte = ["cssparser-macros/dummy_match_byte"]
3938

4039
[workspace]
4140
members = [".", "./macros", "./procedural-masquerade"]

build.rs

-41
This file was deleted.

build/match_byte.rs

-209
This file was deleted.

macros/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ proc-macro = true
1515
[dependencies]
1616
quote = "1"
1717
syn = {version = "1", features = ["full", "extra-traits"]}
18+
19+
[features]
20+
dummy_match_byte = []

0 commit comments

Comments
 (0)