11[package ]
22name = " tentacle"
3- version = " 0.3.8 "
3+ version = " 0.4.0-alpha.1 "
44license = " MIT"
55description = " Minimal implementation for a multiplexed p2p network framework."
66authors = [" piaoliu <driftluo@foxmail.com>" , " Nervos Core Dev <dev@nervos.org>" ]
@@ -16,8 +16,8 @@ all-features = false
1616no-default-features = true
1717
1818[dependencies ]
19- yamux = { path = " ../yamux" , version = " 0.2.12 " , default-features = false , package = " tokio-yamux" }
20- secio = { path = " ../secio" , version = " 0.4.5 " , package = " tentacle-secio" }
19+ yamux = { path = " ../yamux" , version = " 0.3.0 " , default-features = false , package = " tokio-yamux" }
20+ secio = { path = " ../secio" , version = " 0.5.0 " , package = " tentacle-secio" }
2121
2222futures = { version = " 0.3.0" }
2323tokio = { version = " 1.0.0" }
@@ -26,7 +26,6 @@ log = "0.4"
2626bytes = " 1.0.0"
2727thiserror = " 1.0"
2828once_cell = " 1.0"
29- rand = " 0.7"
3029nohash-hasher = " 0.2"
3130
3231parking_lot = { version = " 0.11" , optional = true }
@@ -35,12 +34,16 @@ futures-timer = { version = "3.0.2", optional = true }
3534async-std = { version = " 1" , features = [" unstable" ], optional = true }
3635async-io = { version = " 1" , optional = true }
3736
38- multiaddr = { path = " ../multiaddr" , package = " tentacle-multiaddr" , version = " 0.2 .0" }
37+ multiaddr = { path = " ../multiaddr" , package = " tentacle-multiaddr" , version = " 0.3 .0" }
3938molecule = " 0.7.0"
4039
4140# upnp
4241igd = { version = " 0.11" , optional = true }
4342
43+ [target .'cfg(not(target_arch = "wasm32"))' .dependencies ]
44+ # rand 0.8 not support wasm32
45+ rand = " 0.7"
46+
4447[target .'cfg(target_arch = "wasm32")' .dependencies ]
4548js-sys = " 0.3"
4649wasm-bindgen = " 0.2"
@@ -64,7 +67,7 @@ futures-test = "0.3.5"
6467nix = " 0.13.0"
6568
6669[features ]
67- default = [" tokio-runtime" , " tokio-timer" , " upnp " ]
70+ default = [" tokio-runtime" , " tokio-timer" ]
6871ws = [" tokio-tungstenite" ]
6972upnp = [" igd" ]
7073unstable = []
0 commit comments