Update some dependenices; Remove some useless dependencies (#1387)

Signed-off-by: koushiro <koushiro.cqx@gmail.com>

Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
This commit is contained in:
Qinxuan Chen
2020-01-10 21:03:59 +08:00
committed by Pierre Krieger
parent 655609dfe0
commit af464e18c5
18 changed files with 18 additions and 49 deletions

View File

@@ -16,7 +16,6 @@ flate2 = "1.0"
[dev-dependencies]
async-std = "1.0"
env_logger = "0.7.1"
libp2p-tcp = { version = "0.14.0-alpha.1", path = "../../transports/tcp" }
rand = "0.7"
quickcheck = "0.9"

View File

@@ -11,7 +11,6 @@ categories = ["network-programming", "asynchronous"]
[dependencies]
bs58 = "0.3.0"
bytes = "0.5"
cuckoofilter = "0.3.2"
fnv = "1.0"
futures = "0.3.1"

View File

@@ -10,21 +10,16 @@ keywords = ["peer-to-peer", "libp2p", "networking"]
categories = ["network-programming", "asynchronous"]
[dependencies]
bytes = "0.5"
futures_codec = "0.3.4"
futures = "0.3.1"
libp2p-core = { version = "0.14.0-alpha.1", path = "../../core" }
libp2p-swarm = { version = "0.4.0-alpha.1", path = "../../swarm" }
log = "0.4.1"
multiaddr = { package = "parity-multiaddr", version = "0.7.0", path = "../../misc/multiaddr" }
protobuf = "=2.8.1" # note: see https://github.com/libp2p/rust-libp2p/issues/1363
smallvec = "1.0"
wasm-timer = "0.2"
unsigned-varint = { version = "0.3", features = ["futures-codec"] }
[dev-dependencies]
async-std = "1.0"
libp2p-mplex = { version = "0.14.0-alpha.1", path = "../../muxers/mplex" }
libp2p-secio = { version = "0.14.0-alpha.1", path = "../../protocols/secio" }
libp2p-tcp = { version = "0.14.0-alpha.1", path = "../../transports/tcp" }
rand = "0.6"

View File

@@ -19,7 +19,6 @@ futures = "0.3.1"
log = "0.4"
libp2p-core = { version = "0.14.0-alpha.1", path = "../../core" }
libp2p-swarm = { version = "0.4.0-alpha.1", path = "../../swarm" }
multiaddr = { package = "parity-multiaddr", version = "0.7.0", path = "../../misc/multiaddr" }
multihash = { package = "parity-multihash", version = "0.2.1", path = "../../misc/multihash" }
protobuf = "=2.8.1" # note: see https://github.com/libp2p/rust-libp2p/issues/1363
rand = "0.7.2"
@@ -32,7 +31,5 @@ void = "1.0"
[dev-dependencies]
libp2p-secio = { version = "0.14.0-alpha.1", path = "../secio" }
libp2p-tcp = { version = "0.14.0-alpha.1", path = "../../transports/tcp" }
libp2p-yamux = { version = "0.14.0-alpha.1", path = "../../muxers/yamux" }
quickcheck = "0.9.0"
rand = "0.7.2"

View File

@@ -8,7 +8,6 @@ repository = "https://github.com/libp2p/rust-libp2p"
edition = "2018"
[dependencies]
bytes = "0.5"
curve25519-dalek = "1"
futures = "0.3.1"
lazy_static = "1.2"
@@ -25,5 +24,4 @@ zeroize = "1"
env_logger = "0.7.1"
libp2p-tcp = { version = "0.14.0-alpha.1", path = "../../transports/tcp" }
quickcheck = "0.9.0"
tokio = "0.1"
sodiumoxide = "^0.2.5"

View File

@@ -10,12 +10,10 @@ keywords = ["peer-to-peer", "libp2p", "networking"]
categories = ["network-programming", "asynchronous"]
[dependencies]
bytes = "0.5"
futures = "0.3.1"
libp2p-core = { version = "0.14.0-alpha.1", path = "../../core" }
libp2p-swarm = { version = "0.4.0-alpha.1", path = "../../swarm" }
log = "0.4.1"
multiaddr = { package = "parity-multiaddr", version = "0.7.0", path = "../../misc/multiaddr" }
rand = "0.7.2"
void = "1.0"
wasm-timer = "0.2"

View File

@@ -24,4 +24,3 @@ void = "1.0.2"
env_logger = "0.7.1"
quickcheck = "0.9.0"
rand = "0.7"
futures-timer = "2.0"

View File

@@ -28,7 +28,6 @@ twofish = "0.2.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
ring = { version = "0.16.9", features = ["alloc"], default-features = false }
untrusted = "0.7.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3.10"