@@ -11,17 +11,40 @@ keywords = ["peer-to-peer", "libp2p", "networking"]
1111categories = [" network-programming" , " asynchronous" ]
1212
1313[dependencies ]
14+ thiserror = { version = " 1.0.4" , optional = true }
1415futures = " 0.3.28"
1516js-sys = " 0.3.63"
17+ web-sys = { version = " 0.3.63" , optional = true }
1618libp2p-core = { workspace = true }
17- parity-send-wrapper = " 0.1.0"
19+ libp2p-identity = { workspace = true , optional = true }
20+ libp2p-noise = { workspace = true , optional = true }
21+ send_wrapper = { version = " 0.6.0" , features = [" futures" ] }
1822wasm-bindgen = " 0.2.86"
1923wasm-bindgen-futures = " 0.4.36"
2024
2125[features ]
2226websocket = []
27+ webtransport = [
28+ " thiserror" ,
29+ " libp2p-identity" ,
30+ " libp2p-noise" ,
31+ " dep:web-sys" ,
32+ " web-sys?/ReadableStreamDefaultReader" ,
33+ " web-sys?/WritableStreamDefaultWriter" ,
34+ " web-sys?/WebTransport" ,
35+ " web-sys?/WebTransportHash" ,
36+ " web-sys?/WebTransportOptions" ,
37+ " web-sys?/WebTransportBidirectionalStream" ,
38+ " web-sys?/WebTransportReceiveStream" ,
39+ " web-sys?/WebTransportSendStream" ,
40+ ]
2341
24- # Passing arguments to the docsrs builder in order to properly document cfg's.
42+ [dev-dependencies ]
43+ multibase = " 0.9.1"
44+ wasm-bindgen-test = " 0.3.36"
45+ getrandom = { version = " 0.2.9" , features = [" js" ] }
46+
47+ # Passing arguments to the docsrs builder in order to properly document cfg's.
2548# More information: https://docs.rs/about/builds#cross-compiling
2649[package .metadata .docs .rs ]
2750all-features = true
0 commit comments