Skip to content

Commit 5237de0

Browse files
authored
Make serde dependency optional (#692)
Signed-off-by: Nico Burns <[email protected]>
1 parent 3405900 commit 5237de0

File tree

6 files changed

+10
-2
lines changed

6 files changed

+10
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ log = "0.4"
3232
new_debug_unreachable = "1.0.2"
3333
phf = "0.13"
3434
phf_codegen = "0.13"
35-
string_cache = "0.9.0"
35+
string_cache = { version = "0.9.0", default-features = false }
3636
string_cache_codegen = "0.6.1"
3737
utf-8 = "0.7"
3838

html5ever/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ rust-version.workspace = true
1414

1515
[features]
1616
trace_tokenizer = []
17+
serde = ["markup5ever/serde"]
1718

1819
[dependencies]
1920
markup5ever = { workspace = true }

markup5ever/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ rust-version.workspace = true
1313
[lib]
1414
path = "lib.rs"
1515

16+
[features]
17+
serde = ["web_atoms/serde"]
18+
1619
[dependencies]
1720
web_atoms = { workspace = true }
1821
tendril = { workspace = true }

rcdom/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ path = "lib.rs"
1616

1717
[dependencies]
1818
html5ever = { workspace = true }
19-
markup5ever = { workspace = true }
19+
markup5ever = { workspace = true, features = ["serde"]}
2020
xml5ever = { workspace = true }
2121
tendril = { workspace = true }
2222

web_atoms/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ rust-version.workspace = true
1414
[lib]
1515
path = "lib.rs"
1616

17+
[features]
18+
serde = ["string_cache/serde_support"]
19+
1720
[dependencies]
1821
string_cache = { workspace = true }
1922
phf = { workspace = true }

xml5ever/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ rust-version.workspace = true
1616

1717
[features]
1818
trace_tokenizer = []
19+
serde = ["markup5ever/serde"]
1920

2021
[dependencies]
2122
markup5ever = { workspace = true }

0 commit comments

Comments
 (0)