Use unsigned-varint and futures_codec from crates.io. (#1293)

This commit is contained in:
Toralf Wittner
2019-11-05 09:08:08 +01:00
committed by Pierre Krieger
parent 5f17b11f8e
commit 7eb4165d44
5 changed files with 8 additions and 11 deletions

View File

@@ -79,6 +79,3 @@ members = [
"transports/wasm-ext"
]
# TODO: remove after https://github.com/matthunz/futures-codec/issues/22
[patch.crates-io]
futures_codec = { git = "https://github.com/matthunz/futures-codec" }

View File

@@ -12,12 +12,12 @@ categories = ["network-programming", "asynchronous"]
[dependencies]
bytes = "0.4.5"
fnv = "1.0"
futures_codec = "0.2.4"
futures_codec = "0.3.0"
futures-preview = "0.3.0-alpha.18"
libp2p-core = { version = "0.12.0", path = "../../core" }
log = "0.4"
parking_lot = "0.8"
unsigned-varint = { git = "https://github.com/tomaka/unsigned-varint", branch = "futures-codec", features = ["codec"] }
unsigned-varint = { version = "0.2.3", features = ["futures-codec"] }
[dev-dependencies]
libp2p-tcp = { version = "0.12.0", path = "../../transports/tcp" }

View File

@@ -11,7 +11,7 @@ categories = ["network-programming", "asynchronous"]
[dependencies]
bytes = "0.4"
futures_codec = "0.2"
futures_codec = "0.3.0"
futures-preview = "0.3.0-alpha.18"
libp2p-core = { version = "0.12.0", path = "../../core" }
libp2p-swarm = { version = "0.2.0", path = "../../swarm" }
@@ -20,7 +20,7 @@ multiaddr = { package = "parity-multiaddr", version = "0.5.0", path = "../../mis
protobuf = "2.8"
smallvec = "0.6"
wasm-timer = "0.2"
unsigned-varint = { git = "https://github.com/tomaka/unsigned-varint", branch = "futures-codec", features = ["codec"] }
unsigned-varint = { version = "0.2.3", features = ["futures-codec"] }
void = "1.0"
[dev-dependencies]

View File

@@ -14,7 +14,7 @@ arrayvec = "0.4.7"
bytes = "0.4"
either = "1.5"
fnv = "1.0"
futures_codec = "0.2"
futures_codec = "0.3.0"
futures-preview = "0.3.0-alpha.18"
log = "0.4"
libp2p-core = { version = "0.12.0", path = "../../core" }
@@ -27,7 +27,7 @@ sha2 = "0.8.0"
smallvec = "0.6"
wasm-timer = "0.2"
uint = "0.8"
unsigned-varint = { git = "https://github.com/tomaka/unsigned-varint", branch = "futures-codec", features = ["codec"] }
unsigned-varint = { version = "0.2.3", features = ["futures-codec"] }
void = "1.0"
[dev-dependencies]

View File

@@ -12,7 +12,7 @@ categories = ["network-programming", "asynchronous"]
[dependencies]
bytes = "0.4"
futures-preview = "0.3.0-alpha.18"
futures_codec = "0.2.5"
futures_codec = "0.3.0"
libp2p-core = { version = "0.12.0", path = "../../core" }
log = "0.4.6"
protobuf = "2.8"
@@ -25,7 +25,7 @@ lazy_static = "1.2.0"
rw-stream-sink = { version = "0.1.1", path = "../../misc/rw-stream-sink" }
sha2 = "0.8.0"
hmac = "0.7.0"
unsigned-varint = { git = "https://github.com/tomaka/unsigned-varint", branch = "futures-codec", features = ["codec"] }
unsigned-varint = { version = "0.2.3", features = ["futures-codec"] }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
ring = { version = "^0.16", features = ["alloc"], default-features = false }