Skip to content

Commit

Permalink
build: Make match_byte a proper proc-macro.
Browse files Browse the repository at this point in the history
Now these are stable. Fix a bunch of warnings that this exposed.

This seems still a valuable optimization from looking at existing
benchmarks.
  • Loading branch information
emilio committed May 8, 2023
1 parent b0c1761 commit 5c72f89
Show file tree
Hide file tree
Showing 8 changed files with 181 additions and 304 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ repository = "https://github.com/servo/rust-cssparser"
readme = "README.md"
keywords = ["css", "syntax", "parser"]
license = "MPL-2.0"
build = "build.rs"
edition = "2018"
rust-version = "1.63"

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

[features]
bench = []
dummy_match_byte = []
dummy_match_byte = ["cssparser-macros/dummy_match_byte"]

[workspace]
members = [".", "./macros", "./procedural-masquerade"]
41 changes: 0 additions & 41 deletions build.rs

This file was deleted.

209 changes: 0 additions & 209 deletions build/match_byte.rs

This file was deleted.

3 changes: 3 additions & 0 deletions macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ proc-macro = true
[dependencies]
quote = "1"
syn = {version = "1", features = ["full", "extra-traits"]}

[features]
dummy_match_byte = []
Loading

0 comments on commit 5c72f89

Please sign in to comment.