Skip to content

Commit fcdf2dc

Browse files
committed
Group optional dependencies in Cargo.toml
1 parent bc313df commit fcdf2dc

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

Cargo.toml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,21 @@ rust-version = "1.68"
1414

1515
exclude = ["src/css-parsing-tests/**", "src/big-data-url.css"]
1616

17-
[dev-dependencies]
18-
serde_json = "1.0.25"
19-
difference = "2.0"
20-
encoding_rs = "0.8"
21-
2217
[dependencies]
23-
cssparser-macros = { path = "./macros", version = "0.6.1", optional = true }
2418
dtoa-short = "0.3"
2519
itoa = "1.0"
20+
smallvec = "1.0"
21+
22+
# Optional dependencies
23+
cssparser-macros = { path = "./macros", version = "0.6.1", optional = true }
24+
malloc_size_of = { version = "0.1", default-features = false, optional = true }
2625
phf = { version = "0.13.1", features = ["macros"], optional = true }
2726
serde = { version = "1.0", features = ["derive"], optional = true }
28-
malloc_size_of = { version = "0.1", default-features = false, optional = true }
29-
smallvec = "1.0"
27+
28+
[dev-dependencies]
29+
serde_json = "1.0.25"
30+
difference = "2.0"
31+
encoding_rs = "0.8"
3032

3133
[profile.profiling]
3234
inherits = "release"

0 commit comments

Comments
 (0)