Skip to content

Commit 9684d52

Browse files
1 parent b1b0da0 commit 9684d52

File tree

11 files changed

+131
-160
lines changed

11 files changed

+131
-160
lines changed

Cargo.lock

Lines changed: 114 additions & 137 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,10 @@ futures-buffered = "0.2.4"
3535
futures-lite = "2.3.0"
3636
futures-util = { version = "0.3.25" }
3737
hex = "0.4"
38-
iroh-base = "0.28.0"
3938
iroh-blobs = { version = "0.28.0", optional = true, features = ["downloader"] }
4039
iroh-gossip = { version = "0.28.0", optional = true }
41-
iroh-metrics = { version = "0.28.0", default-features = false }
42-
iroh = { version = "0.28", optional = true }
40+
iroh-metrics = { version = "0.29.0", default-features = false }
41+
iroh = { version = "0.29", optional = true }
4342
num_enum = "0.7"
4443
postcard = { version = "1", default-features = false, features = ["alloc", "use-std", "experimental-derive"] }
4544
rand = "0.8.5"
@@ -67,12 +66,13 @@ portable-atomic = { version = "1.9.0", optional = true }
6766
clap = { version = "4", features = ["derive"], optional = true }
6867
console = { version = "0.15", optional = true }
6968
indicatif = { version = "0.17", features = ["tokio"], optional = true }
69+
iroh-base = { version = "0.29", features = ["base32"], optional = true }
7070
dialoguer = { version = "0.11", optional = true }
7171
colored = { version = "2.1", optional = true }
7272
shellexpand = { version = "3.1", optional = true }
7373

7474
[dev-dependencies]
75-
iroh-test = "0.28.0"
75+
iroh-test = "0.29"
7676
rand_chacha = "0.3.1"
7777
tokio = { version = "1", features = ["sync", "macros"] }
7878
proptest = "1.2.0"
@@ -92,7 +92,7 @@ net = ["dep:iroh", "tokio/io-util", "dep:tokio-stream", "dep:tokio-util"]
9292
metrics = ["iroh-metrics/metrics", "iroh/metrics"]
9393
engine = ["net", "dep:iroh-gossip", "dep:iroh-blobs"]
9494
test-utils = ["iroh/test-utils"]
95-
cli = ["rpc", "dep:clap", "dep:indicatif", "dep:console", "dep:colored", "dep:dialoguer", "dep:shellexpand", "iroh-blobs/rpc"]
95+
cli = ["rpc", "dep:clap", "dep:indicatif", "dep:console", "dep:colored", "dep:dialoguer", "dep:shellexpand", "iroh-blobs/rpc", "dep:iroh-base"]
9696
rpc = [
9797
"engine",
9898
"dep:nested_enum_utils",
@@ -107,8 +107,5 @@ all-features = true
107107
rustdoc-args = ["--cfg", "iroh_docsrs"]
108108

109109
[patch.crates-io]
110-
iroh-metrics = { git = "https://github.com/n0-computer/iroh", branch = "main" }
111-
iroh-base = { git = "https://github.com/n0-computer/iroh", branch = "main" }
112-
iroh = { git = "https://github.com/n0-computer/iroh", branch = "main" }
113-
iroh-blobs = { git = "https://github.com/n0-computer/iroh-blobs", branch = "main" }
114-
iroh-gossip = { git = "https://github.com/n0-computer/iroh-gossip", branch = "main" }
110+
iroh-blobs = { git = "https://github.com/n0-computer/iroh-blobs", branch = "iroh-v0-29-0" }
111+
iroh-gossip = { git = "https://github.com/n0-computer/iroh-gossip", branch = "iroh-v0-29-0" }

src/actor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::{
1111
use anyhow::{anyhow, Context, Result};
1212
use bytes::Bytes;
1313
use futures_util::FutureExt;
14-
use iroh_base::hash::Hash;
14+
use iroh::hash::Hash;
1515
use iroh_metrics::inc;
1616
use serde::{Deserialize, Serialize};
1717
use tokio::{sync::oneshot, task::JoinSet};

src/cli.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ use dialoguer::Confirm;
1818
use futures_buffered::BufferedStreamExt;
1919
use futures_lite::{Stream, StreamExt};
2020
use indicatif::{HumanBytes, HumanDuration, MultiProgress, ProgressBar, ProgressStyle};
21-
use iroh_base::{base32::fmt_short, hash::Hash, node_addr::AddrInfoOptions};
21+
use iroh::{hash::Hash, AddrInfoOptions};
22+
use iroh_base::base32::fmt_short;
2223
use iroh_blobs::{
2324
provider::AddProgress,
2425
rpc::client::blobs::{self, WrapOption},

src/net/codec.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ impl BobState {
294294
#[cfg(test)]
295295
mod tests {
296296
use anyhow::Result;
297-
use iroh::key::SecretKey;
298-
use iroh_base::hash::Hash;
297+
use iroh::{hash::Hash, key::SecretKey};
299298
use rand_core::{CryptoRngCore, SeedableRng};
300299

301300
use super::*;

src/rpc/client/docs.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ use anyhow::{anyhow, Context as _, Result};
1212
use bytes::Bytes;
1313
use derive_more::{Display, FromStr};
1414
use futures_lite::{Stream, StreamExt};
15-
use iroh::NodeAddr;
16-
use iroh_base::node_addr::AddrInfoOptions;
15+
use iroh::{AddrInfoOptions, NodeAddr};
1716
use iroh_blobs::{export::ExportProgress, store::ExportMode, Hash};
1817
use portable_atomic::{AtomicBool, Ordering};
1918
use quic_rpc::{

src/rpc/proto.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
use std::path::PathBuf;
44

55
use bytes::Bytes;
6-
use iroh::NodeAddr;
7-
use iroh_base::node_addr::AddrInfoOptions;
6+
use iroh::{AddrInfoOptions, NodeAddr};
87
use iroh_blobs::{export::ExportProgress, store::ExportMode, Hash};
98
use nested_enum_utils::enum_conversions;
109
use quic_rpc::pattern::try_server_streaming::StreamCreated;

src/store/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use std::{
1111

1212
use anyhow::{anyhow, Result};
1313
use ed25519_dalek::{SignatureError, VerifyingKey};
14-
use iroh_base::hash::Hash;
14+
use iroh::hash::Hash;
1515
use rand_core::CryptoRngCore;
1616
use redb::{Database, DatabaseError, ReadableMultimapTable, ReadableTable, ReadableTableMetadata};
1717

src/store/fs/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use anyhow::Result;
2-
use iroh_base::hash::Hash;
2+
use iroh::hash::Hash;
33

44
use super::{
55
bounds::{ByKeyBounds, RecordsBounds},

src/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::{
1616

1717
use bytes::{Bytes, BytesMut};
1818
use ed25519_dalek::{Signature, SignatureError};
19-
use iroh_base::hash::Hash;
19+
use iroh::hash::Hash;
2020
#[cfg(feature = "metrics")]
2121
use iroh_metrics::{inc, inc_by};
2222
use serde::{Deserialize, Serialize};

0 commit comments

Comments
 (0)