Fix libp2p features (#6229)

* Fix libp2p features

* Remove the opt-level of some now-unused crates
This commit is contained in:
Pierre Krieger
2020-06-03 15:24:44 +02:00
committed by GitHub
parent 0c6ae6f3d4
commit e77490714d
8 changed files with 31 additions and 173 deletions
@@ -21,7 +21,7 @@ codec = { package = "parity-scale-codec", default-features = false, version = "1
derive_more = "0.99.2"
futures = "0.3.4"
futures-timer = "3.0.1"
libp2p = { version = "0.19.1", default-features = false, features = ["secp256k1", "libp2p-websocket"] }
libp2p = { version = "0.19.1", default-features = false, features = ["kad"] }
log = "0.4.8"
prometheus-endpoint = { package = "substrate-prometheus-endpoint", path = "../../utils/prometheus", version = "0.8.0-rc2"}
prost = "0.6.1"
+1 -1
View File
@@ -16,7 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
futures = "0.3.4"
futures-timer = "3.0.1"
libp2p = { version = "0.19.1", default-features = false, features = ["websocket"] }
libp2p = { version = "0.19.1", default-features = false }
log = "0.4.8"
lru = "0.4.3"
sc-network = { version = "0.8.0-rc2", path = "../network" }
+1 -1
View File
@@ -65,7 +65,7 @@ zeroize = "1.0.0"
[dependencies.libp2p]
version = "0.19.1"
default-features = false
features = ["websocket", "kad", "mdns", "ping", "identify", "mplex", "yamux", "noise", "tcp-async-std"]
features = ["identify", "kad", "mdns", "mplex", "noise", "ping", "tcp-async-std", "websocket", "yamux"]
[dev-dependencies]
async-std = "1.5"
+1 -1
View File
@@ -19,7 +19,7 @@ parking_lot = "0.10.0"
futures = "0.3.4"
futures-timer = "3.0.1"
rand = "0.7.2"
libp2p = { version = "0.19.1", default-features = false, features = ["libp2p-websocket"] }
libp2p = { version = "0.19.1", default-features = false }
sp-consensus = { version = "0.8.0-rc2", path = "../../../primitives/consensus/common" }
sc-consensus = { version = "0.8.0-rc2", path = "../../../client/consensus/common" }
sc-client-api = { version = "2.0.0-rc2", path = "../../api" }
+1 -1
View File
@@ -19,7 +19,7 @@ parking_lot = "0.10.0"
futures = "0.3.4"
futures-timer = "3.0.1"
wasm-timer = "0.2.0"
libp2p = { version = "0.19.1", default-features = false, features = ["websocket", "wasm-ext", "tcp-async-std", "dns"] }
libp2p = { version = "0.19.1", default-features = false, features = ["dns", "tcp-async-std", "wasm-ext", "websocket"] }
log = "0.4.8"
pin-project = "0.4.6"
rand = "0.7.2"