Skip to content

Commit b839cf3

Browse files
committed
remove web-sys features only used by tests
1 parent e423c6c commit b839cf3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

url/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,18 @@ bencher = "0.1"
2323

2424
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies]
2525
wasm-bindgen-test = "0.3"
26+
web-sys = { version = "0.3.65", features = ["Navigator", "Window"] }
2627

2728
[dependencies]
2829
form_urlencoded = { version = "1.2.1", path = "../form_urlencoded" }
2930
percent-encoding = { version = "2.3.1", path = "../percent_encoding" }
3031
serde = { version = "1.0", optional = true, features = ["derive"] }
3132

32-
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
33+
[target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dependencies]
3334
idna = { version = "0.5.0", path = "../idna" }
3435

35-
[target.'cfg(target_arch = "wasm32")'.dependencies]
36-
web-sys = { version = "0.3.65", features = ["Navigator", "Url", "Window"] }
36+
[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies]
37+
web-sys = { version = "0.3.65", features = ["Url"] }
3738

3839
[features]
3940
default = []

0 commit comments

Comments
 (0)