Skip to content

Commit d85e38b

Browse files
Expose wasm-bindgen feature instead of automatically activating it
1 parent 433b3b5 commit d85e38b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ rendezvous = ["libp2p-rendezvous"]
5353
tcp-async-io = ["libp2p-tcp", "libp2p-tcp/async-io"]
5454
tcp-tokio = ["libp2p-tcp", "libp2p-tcp/tokio"]
5555
uds = ["libp2p-uds"]
56-
wasm-bindgen = ["parking_lot/wasm-bindgen"]
56+
wasm-bindgen = ["parking_lot/wasm-bindgen", "libp2p-rendezvous/wasm-bindgen"]
5757
wasm-ext = ["libp2p-wasm-ext"]
5858
wasm-ext-websocket = ["wasm-ext", "libp2p-wasm-ext/websocket"]
5959
websocket = ["libp2p-websocket"]

protocols/rendezvous/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ sha2 = "0.9"
2525
rand = "0.8"
2626
wasm-timer = "0.2"
2727

28-
[target.'cfg(target_arch = "wasm32")'.dependencies]
29-
uuid = { version = "0.8", features = ["wasm-bindgen"] }
30-
3128
[dev-dependencies]
3229
libp2p = { path = "../.." }
3330
rand = "0.8"
@@ -36,5 +33,8 @@ env_logger = "0.8"
3633
async-trait = "0.1"
3734
tokio = { version = "1", features = [ "rt-multi-thread", "time", "macros", "sync", "process", "fs", "net" ] } # TODO: REMOVE FOR PRODUCTION USE
3835

36+
[features]
37+
wasm-bindgen = ["uuid/wasm-bindgen"]
38+
3939
[build-dependencies]
4040
prost-build = "0.7"

0 commit comments

Comments
 (0)