Skip to content

Commit 13a0c24

Browse files
authored
Replace match_token! proc macro with tag! macro_rules macro (#640)
* Replace match_token with macro_rules macros Signed-off-by: Nico Burns <[email protected]> * Use <> instead of [] Signed-off-by: Nico Burns <[email protected]> * Allow unused macros Signed-off-by: Nico Burns <[email protected]> * Use ident macro to remove quotes Signed-off-by: Nico Burns <[email protected]> * Cleanup Signed-off-by: Nico Burns <[email protected]> * Use closure for fallback case + add spec comments for InsertionMode::BeforeHtml Signed-off-by: Nico Burns <[email protected]> * Convert all rules to use tag! macro Signed-off-by: Nico Burns <[email protected]> * Remove comments from InsertionMode::BeforeHtml Signed-off-by: Nico Burns <[email protected]> * Remove unused is_not_tag and tag_token macros Signed-off-by: Nico Burns <[email protected]> * Fixup convert rules * Remove match_token crate Signed-off-by: Nico Burns <[email protected]> * Document tag! macro Signed-off-by: Nico Burns <[email protected]> * Use human-readable section headers Signed-off-by: Nico Burns <[email protected]> * Use string-cache-codegen 0.6.1 from crates.io Signed-off-by: Nico Burns <[email protected]> * Remove brackets around links as they are not in doc comments Signed-off-by: Nico Burns <[email protected]> --------- Signed-off-by: Nico Burns <[email protected]>
1 parent c79cebb commit 13a0c24

File tree

8 files changed

+758
-1164
lines changed

8 files changed

+758
-1164
lines changed

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ members = [
66
"html5ever",
77
"rcdom",
88
"xml5ever",
9-
"match_token"
109
]
1110

1211
[workspace.package]
@@ -20,7 +19,6 @@ rust-version = "1.70.0"
2019
[workspace.dependencies]
2120
# Repo dependencies
2221
web_atoms = { version = "0.1", path = "web_atoms" }
23-
match_token = { version = "0.35.0", path = "match_token" }
2422
markup5ever = { version = "0.35.0", path = "markup5ever" }
2523
xml5ever = { version = "0.35.0", path = "xml5ever" }
2624
html5ever = { version = "0.35.0", path = "html5ever" }
@@ -33,7 +31,7 @@ log = "0.4"
3331
mac = "0.1"
3432
tendril = "0.4"
3533
string_cache = "0.9.0"
36-
string_cache_codegen = "0.6.0"
34+
string_cache_codegen = "0.6.1"
3735
phf = "0.13"
3836
phf_codegen = "0.13"
3937

RELEASING.MD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
The following crates are on a synchronised release cycle with version managed through the workspace `Cargo.toml`:
44

5-
- **match_token**
65
- **markup5ever**
76
- **xml5ever**
87
- **html5ever**
@@ -26,5 +25,5 @@ The **web_atoms** crate is on a separate cycle as it needs frequent releases but
2625
In the workspace `Cargo.toml`:
2726

2827
- Update the `version` key in the `[workspace.package]` section
29-
- Update the versions for `match_token`, `markup5ever`, `xml5ever`, and `html5ever` in the `[workspace.dependencies]` section to match
28+
- Update the versions for `markup5ever`, `xml5ever`, and `html5ever` in the `[workspace.dependencies]` section to match
3029
- Publish all of the crates. The order they are listed in at the top of this file will work.

html5ever/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ trace_tokenizer = []
1717

1818
[dependencies]
1919
markup5ever = { workspace = true }
20-
match_token = { workspace = true }
2120
log = { workspace = true }
2221

2322
[dev-dependencies]

html5ever/src/tree_builder/rules.rs

Lines changed: 756 additions & 545 deletions
Large diffs are not rendered by default.

match_token/Cargo.toml

Lines changed: 0 additions & 18 deletions
This file was deleted.

match_token/LICENSE-APACHE

Lines changed: 0 additions & 201 deletions
This file was deleted.

match_token/LICENSE-MIT

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)