Skip to content

Commit

Permalink
chore: cleanup Cargo.toml
Browse files Browse the repository at this point in the history
dariusc93 committed Jan 19, 2025
1 parent 73d032c commit 3ef349c
Showing 5 changed files with 41 additions and 55 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 19 additions & 30 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ async-rt = "0.1.5"
async-stream = { version = "0.3.6" }
async-trait = { version = "0.1.85" }
asynchronous-codec = "0.7.0"
base64 = { default-features = false, features = ["alloc"], version = "0.22.1" }
base64 = { version = "0.22.1" }
bytes = "1.9.0"
cid = "0.11.1"
chrono = { version = "0.4.39" }
@@ -38,7 +38,7 @@ futures-timer = "3.0.0"
getrandom = { version = "0.2.15" }
hickory-resolver = "0.25.0-alpha.4"
hkdf = "0.12.4"
idb = "0.6.3"
idb = "0.6.4"
indexmap = "2.7.0"
ipld-core = { version = "0.4.1", features = ["serde"] }
ipld-dagpb = "0.2.1"
@@ -51,8 +51,9 @@ libp2p-webrtc = { version = "=0.9.0-alpha", features = ["pem"] }
libp2p-webrtc-websys = "0.4.0"
multibase = "0.9.1"
multihash = "0.19.3"
multihash-codetable = { version = "0.1.3", default-features = false }
multihash-codetable = { version = "0.1.3" }
multihash-derive = "0.9.0"
# TODO: Determine if we should just rely on default features
p256 = { version = "0.13.2", default-features = false, features = ["ecdsa", "std", "pem"] }
parking_lot = "0.12.3"
pem = { version = "3.0.4" }
@@ -67,20 +68,16 @@ rust-ipns = { version = "0.7.0", path = "packages/rust-ipns" }
rust-unixfs = { version = "0.5.0", path = "unixfs" }
sec1 = { version = "0.7.3", features = ["pem", "pkcs8"] }
send_wrapper = "0.6.0"
serde = { default-features = false, version = "1.0.215" }
serde = { version = "1.0.215" }
serde_ipld_dagcbor = "0.6.1"
serde_ipld_dagjson = "0.2.0"
serde_json = { default-features = false, version = "1.0.135" }
serde-wasm-bindgen = "0.6"
serde_json = { version = "1.0.135" }
serde-wasm-bindgen = "0.6.5"
sha2 = "0.10.8"
simple_x509 = "=1.1.0"
thiserror = { default-features = false, version = "2.0.9" }
tracing = { default-features = false, features = ["log"], version = "0.1.41" }
tracing-futures = { default-features = false, features = [
"std-future",
"std",
"futures-03",
], version = "0.2.5" }
thiserror = { version = "2.0.11" }
tracing = { version = "0.1.41" }
tracing-futures = { features = ["futures-03"], version = "0.2.5" }

tokio = { default-features = false, version = "1.43.0" }
tokio-stream = { default-features = false, version = "0.1.17" }
@@ -129,10 +126,10 @@ sec1.workspace = true
serde = { features = ["derive"], workspace = true }
serde_ipld_dagcbor.workspace = true
serde_ipld_dagjson.workspace = true
serde_json = { features = ["std"], workspace = true }
serde_json = { workspace = true }
sha2.workspace = true
thiserror = { default-features = false, workspace = true }
tracing = { default-features = false, features = ["log"], workspace = true }
thiserror = { workspace = true }
tracing = { workspace = true }
tracing-futures = { workspace = true }
unsigned-varint.workspace = true
web-time.workspace = true
@@ -165,20 +162,12 @@ tokio-util = { workspace = true, default-features = false }
wasm-bindgen-futures.workspace = true

[dev-dependencies]
hex-literal = { default-features = false, version = "0.4" }
sha2 = { default-features = false, version = "0.10" }
tokio = { features = ["full"], version = "1" }
rustyline-async = { version = "0.4" }
tracing-subscriber = { default-features = false, features = [
"fmt",
"tracing-log",
"ansi",
"env-filter",
], version = "0.3" }
rand = { default-features = false, version = "0.8", features = [
"std",
"std_rng",
] }
hex-literal = { default-features = false, version = "0.4.1" }
sha2 = { workspace = true }
tokio = { features = ["full"], workspace = true }
rustyline-async = { version = "0.4.5" }
tracing-subscriber = { features = ["env-filter"], version = "0.3.19" }
rand = { workspace = true }
tempfile = "3.15.0"

clap = { workspace = true }
14 changes: 7 additions & 7 deletions packages/libp2p-relay-manager/Cargo.toml
Original file line number Diff line number Diff line change
@@ -14,20 +14,20 @@ exclude = [".gitignore"]

[dependencies]
libp2p = { workspace = true, features = ["relay"] }
anyhow = "1.0"
futures = "0.3"
anyhow = "1.0.95"
futures = "0.3.31"

rand = "0.8"
rand = "0.8.5"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
futures-timer = { version = "3.0" }
futures-timer = { version = "3.0.3" }

[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { workspace = true, features = ["js"] }
futures-timer = { version = "3.0", features = ["wasm-bindgen"] }
futures-timer = { version = "3.0.3", features = ["wasm-bindgen"] }

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
libp2p = { workspace = true, features = ["full"] }
tokio = { workspace = true, features = ["full"] }
clap = { version = "4.5", features = ["derive"] }
env_logger = "0.11"
clap = { version = "4.5.26", features = ["derive"] }
env_logger = "0.11.6"
6 changes: 3 additions & 3 deletions src/repo/mod.rs
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ use std::task::{Context, Poll};
use std::time::Duration;
use std::{error, fmt, io};
use tokio::sync::{Notify, RwLockReadGuard};
use tracing::{log, Instrument, Span};
use tracing::{Instrument, Span};

#[macro_use]
#[cfg(test)]
@@ -575,9 +575,9 @@ impl Repo {
// Dropping the guard (even though not strictly necessary to compile) to avoid potential
// deadlocks if `block_store` or `data_store` were to try to access `Repo.lockfile`.
{
log::debug!("Trying lockfile");
tracing::debug!("Trying lockfile");
self.inner.lockfile.try_exclusive()?;
log::debug!("lockfile tried");
tracing::debug!("lockfile tried");
}

self.inner.block_store.init().await?;
26 changes: 12 additions & 14 deletions unixfs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -14,23 +14,21 @@ default = ["filetime"]
[dependencies]
ipld-core = "0.4.1"
ipld-dagpb = "0.2.1"
multihash = "0.19.2"
multihash-codetable = { version = "0.1.3", default-features = false, features = ["std", "sha2"] }
multihash-derive = "0.9.0"
multihash = "0.19.3"
multihash-codetable = { version = "0.1.4", default-features = false, features = ["std", "sha2"] }
multihash-derive = "0.9.1"

either = { default-features = false, version = "1.13" }
filetime = { optional = true, version = "0.2" }
quick-protobuf = { default-features = false, features = [
"std",
], version = "0.8" }
sha2 = { default-features = false, version = "0.10" }
either = { default-features = false, version = "1.13.0" }
filetime = { optional = true, version = "0.2.25" }
quick-protobuf = { version = "0.8.1" }
sha2 = { default-features = false, version = "0.10.2" }

[dev-dependencies]
hex-literal = { default-features = false, version = "0.4" }
libc = { default-features = false, version = "0.2" }
multibase = { default-features = false, version = "0.9" }
tar = { default-features = false, version = "0.4" }
criterion = { default-features = false, version = "0.5" }
hex-literal = { default-features = false, version = "0.4.1" }
libc = { default-features = false, version = "0.2.169" }
multibase = { default-features = false, version = "0.9.1" }
tar = { default-features = false, version = "0.4.43" }
criterion = { default-features = false, version = "0.5.1" }

[[bench]]
name = "ingest-tar"

0 comments on commit 3ef349c

Please sign in to comment.