Skip to content

Commit

Permalink
feat: update to iroh@0.29.0
Browse files Browse the repository at this point in the history
* feat: update to iroh@0.29.0

Depends on
- n0-computer/iroh-gossip#14
- https://github.com/n0-computer/iroh-blobs/pulls

* update quic-rpc

* update quic-rpc

* update to released gossip

* update to released versions

* fixup feature flags
  • Loading branch information
dignifiedquire authored Dec 4, 2024
1 parent 0ac3fbe commit a625e88
Show file tree
Hide file tree
Showing 9 changed files with 187 additions and 248 deletions.
386 changes: 170 additions & 216 deletions Cargo.lock

Large diffs are not rendered by default.

25 changes: 9 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ futures-buffered = "0.2.4"
futures-lite = "2.3.0"
futures-util = { version = "0.3.25" }
hex = "0.4"
iroh-base = "0.28.0"
iroh-blobs = { version = "0.28.0", optional = true, features = ["downloader"] }
iroh-gossip = { version = "0.28.0", optional = true }
iroh-metrics = { version = "0.28.0", default-features = false }
iroh = { version = "0.28", optional = true }
iroh-base = { version = "0.29" }
iroh-blobs = { version = "0.29.0", optional = true, features = ["downloader"] }
iroh-gossip = { version = "0.29.0", optional = true }
iroh-metrics = { version = "0.29.0", default-features = false }
iroh = { version = "0.29", optional = true }
num_enum = "0.7"
postcard = { version = "1", default-features = false, features = ["alloc", "use-std", "experimental-derive"] }
rand = "0.8.5"
Expand All @@ -58,8 +58,8 @@ tracing = "0.1"

# rpc
nested_enum_utils = { version = "0.1.0", optional = true }
quic-rpc = { version = "0.15.1", optional = true }
quic-rpc-derive = { version = "0.15", optional = true }
quic-rpc = { version = "0.17", optional = true }
quic-rpc-derive = { version = "0.17", optional = true }
serde-error = { version = "0.1.3", optional = true }
portable-atomic = { version = "1.9.0", optional = true }

Expand All @@ -72,7 +72,7 @@ colored = { version = "2.1", optional = true }
shellexpand = { version = "3.1", optional = true }

[dev-dependencies]
iroh-test = "0.28.0"
iroh-test = "0.29"
rand_chacha = "0.3.1"
tokio = { version = "1", features = ["sync", "macros"] }
proptest = "1.2.0"
Expand All @@ -92,7 +92,7 @@ net = ["dep:iroh", "tokio/io-util", "dep:tokio-stream", "dep:tokio-util"]
metrics = ["iroh-metrics/metrics", "iroh/metrics"]
engine = ["net", "dep:iroh-gossip", "dep:iroh-blobs"]
test-utils = ["iroh/test-utils"]
cli = ["rpc", "dep:clap", "dep:indicatif", "dep:console", "dep:colored", "dep:dialoguer", "dep:shellexpand", "iroh-blobs/rpc"]
cli = ["rpc", "dep:clap", "dep:indicatif", "dep:console", "dep:colored", "dep:dialoguer", "dep:shellexpand", "iroh-blobs/rpc", "iroh-base/base32"]
rpc = [
"engine",
"dep:nested_enum_utils",
Expand All @@ -105,10 +105,3 @@ rpc = [
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "iroh_docsrs"]

[patch.crates-io]
iroh-metrics = { git = "https://github.com/n0-computer/iroh", branch = "main" }
iroh-base = { git = "https://github.com/n0-computer/iroh", branch = "main" }
iroh = { git = "https://github.com/n0-computer/iroh", branch = "main" }
iroh-blobs = { git = "https://github.com/n0-computer/iroh-blobs", branch = "main" }
iroh-gossip = { git = "https://github.com/n0-computer/iroh-gossip", branch = "main" }
6 changes: 1 addition & 5 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,4 @@ ignore = [
]

[sources]
allow-git = [
"https://github.com/n0-computer/iroh.git",
"https://github.com/n0-computer/iroh-blobs.git",
"https://github.com/n0-computer/iroh-gossip.git",
]
allow-git = []
3 changes: 2 additions & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ use dialoguer::Confirm;
use futures_buffered::BufferedStreamExt;
use futures_lite::{Stream, StreamExt};
use indicatif::{HumanBytes, HumanDuration, MultiProgress, ProgressBar, ProgressStyle};
use iroh_base::{base32::fmt_short, hash::Hash, node_addr::AddrInfoOptions};
use iroh::{hash::Hash, AddrInfoOptions};
use iroh_base::base32::fmt_short;
use iroh_blobs::{
provider::AddProgress,
rpc::client::blobs::{self, WrapOption},
Expand Down
3 changes: 1 addition & 2 deletions src/net/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ impl BobState {
#[cfg(test)]
mod tests {
use anyhow::Result;
use iroh::key::SecretKey;
use iroh_base::hash::Hash;
use iroh::{hash::Hash, key::SecretKey};
use rand_core::{CryptoRngCore, SeedableRng};

use super::*;
Expand Down
3 changes: 1 addition & 2 deletions src/rpc/client/docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ use anyhow::{anyhow, Context as _, Result};
use bytes::Bytes;
use derive_more::{Display, FromStr};
use futures_lite::{Stream, StreamExt};
use iroh::NodeAddr;
use iroh_base::node_addr::AddrInfoOptions;
use iroh::{AddrInfoOptions, NodeAddr};
use iroh_blobs::{export::ExportProgress, store::ExportMode, Hash};
use portable_atomic::{AtomicBool, Ordering};
use quic_rpc::{
Expand Down
3 changes: 1 addition & 2 deletions src/rpc/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
use std::path::PathBuf;

use bytes::Bytes;
use iroh::NodeAddr;
use iroh_base::node_addr::AddrInfoOptions;
use iroh::{AddrInfoOptions, NodeAddr};
use iroh_blobs::{export::ExportProgress, store::ExportMode, Hash};
use nested_enum_utils::enum_conversions;
use quic_rpc::pattern::try_server_streaming::StreamCreated;
Expand Down
3 changes: 1 addition & 2 deletions src/ticket.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Tickets for [`iroh-docs`] documents.
use iroh::NodeAddr;
use iroh_base::ticket;
use iroh::{ticket, NodeAddr};
use serde::{Deserialize, Serialize};

use crate::Capability;
Expand Down
3 changes: 1 addition & 2 deletions tests/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ use futures_lite::Stream;
use futures_util::{FutureExt, StreamExt, TryStreamExt};
use iroh::{
key::{PublicKey, SecretKey},
RelayMode,
AddrInfoOptions, RelayMode,
};
use iroh_base::node_addr::AddrInfoOptions;
use iroh_blobs::Hash;
use iroh_docs::{
rpc::client::docs::{Doc, Entry, LiveEvent, ShareMode},
Expand Down

0 comments on commit a625e88

Please sign in to comment.