Merge #276
276: Remove unused dependencies r=koivunej a=c410-f3r First commit only adds `default-features = false` where applicable while the second commit future-proofs possible upstream modifications for every single crate. ``` * bitswap cargo build: 199 -> 179 cargo check: 212 -> 191 cargo test: 201 -> 181 * ipfs cargo build: 419 -> 341 cargo check: 433 -> 354 cargo test: 445 -> 359 * ipfs-http cargo build: 518 -> 408 cargo check: 556 -> 429 cargo test: 522 -> 412 ``` By looking into the differences, it is possible to see astonishing results across all operations. Co-authored-by: Caio <c410.f3r@gmail.com>
This commit is contained in:
commit
d4c4f92e4e
1091
Cargo.lock
generated
1091
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
58
Cargo.toml
58
Cargo.toml
@ -1,9 +1,9 @@
|
||||
[package]
|
||||
name = "ipfs"
|
||||
version = "0.1.0"
|
||||
authors = ["David Craven <david@craven.ch>"]
|
||||
edition = "2018"
|
||||
license = "MIT OR Apache-2.0"
|
||||
name = "ipfs"
|
||||
version = "0.1.0"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
@ -11,44 +11,44 @@ nightly = []
|
||||
all = ["rocksdb"]
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0"
|
||||
async-std = { version = "1.6", features = ["attributes", "std"] }
|
||||
async-trait = "0.1"
|
||||
anyhow = { default-features = false, version = "1.0" }
|
||||
async-std = { default-features = false, features = ["attributes", "std"], version = "1.6" }
|
||||
async-stream = { default-features = false, version = "0.2" }
|
||||
async-trait = { default-features = false, version = "0.1" }
|
||||
bitswap = { path = "bitswap" }
|
||||
byteorder = "1.3.4"
|
||||
cid = "0.5"
|
||||
dirs = "3.0"
|
||||
domain = { git = "https://github.com/nlnetlabs/domain", rev="084964", features = ["resolv"] }
|
||||
futures = { version = "0.3.5", features = ["compat", "io-compat"] }
|
||||
libipld = { git = "https://github.com/ljedrz/rust-ipld", branch = "update_cid", features = ["dag-pb", "dag-json"] }
|
||||
libp2p = "0.22"
|
||||
multibase = "0.8.0"
|
||||
multihash = "0.11"
|
||||
prost = "0.6.1"
|
||||
rand = "0.7.3"
|
||||
rocksdb = { version = "0.13.0", optional = true }
|
||||
serde = { version = "1.0.106", features = ["derive"] }
|
||||
serde_json = "1.0.51"
|
||||
thiserror = "1.0.14"
|
||||
tracing = { version = "0.1", features = ["log"] }
|
||||
tracing-futures = { version = "0.2", default-features = false, features = ["std", "futures-03"] }
|
||||
void = "1.0.2"
|
||||
byteorder = { default-features = false, version = "1.3" }
|
||||
cid = { default-features = false, version = "0.5" }
|
||||
dirs = { default-features = false, version = "3.0" }
|
||||
domain = { default-features = false, features = ["resolv"], git = "https://github.com/nlnetlabs/domain", rev="084964" }
|
||||
futures = { default-features = false, features = ["compat", "io-compat"], version = "0.3.5" }
|
||||
ipfs-unixfs = { path = "unixfs" }
|
||||
async-stream = "0.2.1"
|
||||
libipld = { branch = "update_cid", default-features = false, features = ["dag-pb", "dag-json"], git = "https://github.com/ljedrz/rust-ipld" }
|
||||
libp2p = { default-features = false, features = ["floodsub", "identify", "kad", "tcp-async-std", "mdns", "mplex", "ping", "secio", "yamux"], version = "0.22" }
|
||||
multibase = { default-features = false, version = "0.8" }
|
||||
multihash = { default-features = false, version = "0.11" }
|
||||
prost = { default-features = false, version = "0.6" }
|
||||
rand = { default-features = false, features = ["getrandom"], version = "0.7" }
|
||||
rocksdb = { default-features = false, optional = true, version = "0.13"}
|
||||
serde = { default-features = false, features = ["derive"], version = "1.0" }
|
||||
serde_json = { default-features = false, version = "1.0" }
|
||||
thiserror = { default-features = false, version = "1.0" }
|
||||
tracing = { default-features = false, features = ["log"], version = "0.1" }
|
||||
tracing-futures = { default-features = false, features = ["std", "futures-03"], version = "0.2" }
|
||||
void = { default-features = false, version = "1.0" }
|
||||
|
||||
[build-dependencies]
|
||||
prost-build = "0.6.1"
|
||||
prost-build = { default-features = false, version = "0.6" }
|
||||
|
||||
[dev-dependencies]
|
||||
sha2 = "0.9"
|
||||
hex-literal = "0.3"
|
||||
tracing-subscriber = { version = "0.2", features = ["fmt", "tracing-log"] }
|
||||
hex-literal = { default-features = false, version = "0.3" }
|
||||
sha2 = { default-features = false, version = "0.9" }
|
||||
tracing-subscriber = { default-features = false, features = ["fmt", "tracing-log"], version = "0.2" }
|
||||
|
||||
[workspace]
|
||||
members = [ "bitswap", "http", "unixfs" ]
|
||||
|
||||
[patch.crates-io]
|
||||
ctr = { git = "https://github.com/koivunej/stream-ciphers.git", branch = "ctr128-64to128" }
|
||||
ctr = { branch = "ctr128-64to128", git = "https://github.com/koivunej/stream-ciphers.git" }
|
||||
|
||||
# at least these libp2p components need to be patched if you want to use a local version
|
||||
# libp2p = { path = "../libp2p" }
|
||||
|
@ -1,23 +1,22 @@
|
||||
[package]
|
||||
name = "bitswap"
|
||||
version = "0.1.0"
|
||||
authors = ["David Craven <david@craven.ch>"]
|
||||
edition = "2018"
|
||||
name = "bitswap"
|
||||
version = "0.1.0"
|
||||
|
||||
[build-dependencies]
|
||||
prost-build = "0.6.1"
|
||||
prost-build = { default-features = false, version = "0.6" }
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.28"
|
||||
async-std = "1.6"
|
||||
async-trait = "0.1.29"
|
||||
fnv = "1.0.6"
|
||||
futures = "0.3.4"
|
||||
cid = "0.5"
|
||||
libp2p-core = "0.20.0"
|
||||
libp2p-swarm = "0.20.0"
|
||||
multihash = "0.11"
|
||||
prost = "0.6.1"
|
||||
thiserror = "1.0.14"
|
||||
tracing = { version = "0.1", features = ["log"] }
|
||||
unsigned-varint = "0.3.2"
|
||||
async-std = { default-features = false, version = "1.6" }
|
||||
async-trait = { default-features = false, version = "0.1" }
|
||||
cid = { default-features = false, version = "0.5" }
|
||||
fnv = { default-features = false, version = "1.0" }
|
||||
futures = { default-features = false, version = "0.3" }
|
||||
libp2p-core = { default-features = false, version = "0.20" }
|
||||
libp2p-swarm = { default-features = false, version = "0.20" }
|
||||
multihash = { default-features = false, version = "0.11" }
|
||||
prost = { default-features = false, version = "0.6" }
|
||||
thiserror = { default-features = false, version = "1.0" }
|
||||
tracing = { default-features = false, version = "0.1" }
|
||||
unsigned-varint = { default-features = false, version = "0.3" }
|
||||
|
@ -1,46 +1,44 @@
|
||||
[package]
|
||||
authors = ["Joonas Koivunen <joonas@equilibrium.co>"]
|
||||
build = "build.rs"
|
||||
edition = "2018"
|
||||
name = "ipfs-http"
|
||||
version = "0.1.0"
|
||||
authors = ["Joonas Koivunen <joonas@equilibrium.co>"]
|
||||
edition = "2018"
|
||||
build = "build.rs"
|
||||
|
||||
[build-dependencies]
|
||||
prost-build = "0.6.1"
|
||||
vergen = "3.1.0"
|
||||
prost-build = { default-features = false, version = "0.6" }
|
||||
vergen = { default-features = false, version = "3.1" }
|
||||
|
||||
[dependencies]
|
||||
async-std = { default-features = false, features = ["attributes"], version = "1.6" }
|
||||
base64 = "0.12.0"
|
||||
cid = "0.5"
|
||||
futures = "0.3.4"
|
||||
async-stream = { default-features = false, version = "0.2" }
|
||||
bytes = { default-features = false, version = "0.5" }
|
||||
cid = { default-features = false, version = "0.5" }
|
||||
futures = { default-features = false, version = "0.3" }
|
||||
humantime = { default-features = false, version = "2.0" }
|
||||
hyper = { default-features = false, version = "0.13" }
|
||||
ipfs = { path = "../" }
|
||||
libipld = { git = "https://github.com/ljedrz/rust-ipld", branch = "update_cid", features = ["dag-pb", "dag-json"] }
|
||||
multibase = "0.8.0"
|
||||
multihash = "0.11"
|
||||
libipld = { branch = "update_cid", default-features = false, features = ["dag-pb", "dag-json"], git = "https://github.com/ljedrz/rust-ipld" }
|
||||
mime = { default-features = false, version = "0.3" }
|
||||
mpart-async = { default-features = false, version = "0.4" }
|
||||
multibase = { default-features = false, version = "0.8" }
|
||||
multihash = { default-features = false, version = "0.11" }
|
||||
# openssl is required for rsa keygen but not used by the rust-ipfs or its dependencies
|
||||
openssl = "0.10.30"
|
||||
percent-encoding = "2.1.0"
|
||||
prost = "0.6.1"
|
||||
serde = { version = "1.0.106", features = ["derive"] }
|
||||
serde_json = "1.0.51"
|
||||
structopt = "0.3.12"
|
||||
thiserror = "1.0.14"
|
||||
tokio = { version = "0.2.16", features = ["full"] }
|
||||
warp = "0.2.3"
|
||||
hyper = "0.13.6"
|
||||
async-stream = "0.2.1"
|
||||
pin-project = "0.4.8"
|
||||
url = "2.1.1"
|
||||
tar = { version = "0.4.28", default-features = false }
|
||||
tracing = { version = "0.1", features = ["log"] }
|
||||
tracing-subscriber = { version = "0.2", features = ["fmt", "tracing-log"] }
|
||||
bytes = "0.5.4"
|
||||
mpart-async = "0.4.1"
|
||||
mime = "0.3.16"
|
||||
humantime = "2.0.1"
|
||||
openssl = { default-features = false, version = "0.10" }
|
||||
percent-encoding = { default-features = false, version = "2.1" }
|
||||
prost = { default-features = false, version = "0.6.1" }
|
||||
serde = { default-features = false, features = ["derive"], version = "1.0" }
|
||||
serde_json = { default-features = false, version = "1.0" }
|
||||
structopt = { default-features = false, version = "0.3" }
|
||||
tar = { default-features = false, version = "0.4" }
|
||||
thiserror = { default-features = false, version = "1.0" }
|
||||
tokio = { default-features = false, features = ["full"], version = "0.2" }
|
||||
tracing = { default-features = false, features = ["log"], version = "0.1" }
|
||||
tracing-subscriber = { default-features = false, features = ["fmt", "tracing-log"], version = "0.2" }
|
||||
url = { default-features = false, version = "2.1" }
|
||||
warp = { default-features = false, version = "0.2" }
|
||||
|
||||
[dev-dependencies]
|
||||
hex = "0.4.2"
|
||||
hex-literal = "0.3"
|
||||
tempfile = "3.1.0"
|
||||
async-std = { default-features = false, features = ["attributes"], version = "1.6" }
|
||||
hex = { default-features = false, version = "0.4" }
|
||||
hex-literal = { default-features = false, version = "0.3" }
|
||||
tempfile = { default-features = false, version = "3.1" }
|
||||
|
@ -1,26 +1,25 @@
|
||||
[package]
|
||||
name = "ipfs-unixfs"
|
||||
version = "0.0.1"
|
||||
authors = ["Joonas Koivunen <joonas@equilibrium.co>"]
|
||||
description = "UnixFs tree support"
|
||||
edition = "2018"
|
||||
license = "MIT OR Apache-2.0"
|
||||
description = "UnixFs tree support"
|
||||
repository = "https://github.com/rs-ipfs/rust-ipfs"
|
||||
name = "ipfs-unixfs"
|
||||
readme = "README.md"
|
||||
repository = "https://github.com/rs-ipfs/rust-ipfs"
|
||||
version = "0.0.1"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[features]
|
||||
default = [ "filetime" ]
|
||||
default = ["filetime"]
|
||||
|
||||
[dependencies]
|
||||
quick-protobuf = "0.7.0"
|
||||
cid = "0.5"
|
||||
filetime = { version = "0.2.10", optional = true }
|
||||
either = "1.5.3"
|
||||
sha2 = "0.9"
|
||||
multihash = "0.11"
|
||||
cid = { default-features = false, version = "0.5" }
|
||||
either = { default-features = false, version = "1.5" }
|
||||
filetime = { optional = true, version = "=0.2.8" }
|
||||
multihash = { default-features = false, version = "0.11" }
|
||||
quick-protobuf = { default-features = false, features = ["std"], version = "0.7" }
|
||||
sha2 = { default-features = false, version = "0.9" }
|
||||
|
||||
[dev-dependencies]
|
||||
multibase = "0.8.0"
|
||||
hex-literal = "0.3"
|
||||
libc = "0.2.71"
|
||||
hex-literal = { default-features = false, version = "0.3" }
|
||||
libc = { default-features = false, version = "0.2.71" }
|
||||
multibase = { default-features = false, version = "0.8.0" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user