Skip to content

Commit

Permalink
feat: simple iroh
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Nov 27, 2024
1 parent ad7ac24 commit 7a519ed
Show file tree
Hide file tree
Showing 17 changed files with 7 additions and 2,100 deletions.
155 changes: 0 additions & 155 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions iroh/src/util/fs.rs → iroh-node-util/src/fs.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//! Utilities for filesystem operations.

use std::path::PathBuf;

use anyhow::Context;
Expand Down
2 changes: 2 additions & 0 deletions iroh-node-util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ pub mod config;
pub mod logging;
pub mod rpc;

pub mod fs;

use std::path::PathBuf;

use anyhow::Context;
Expand Down
30 changes: 3 additions & 27 deletions iroh/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,46 +63,22 @@ ref-cast = "1.0.23"
clap = { version = "4", features = ["derive"], optional = true }
indicatif = { version = "0.17", features = ["tokio"], optional = true }
parse-size = { version = "=1.0.0", optional = true } # pinned version to avoid bumping msrv to 1.81
tracing-subscriber = { version = "0.3", features = ["env-filter"], optional = true }

# Documentation tests
url = { version = "2.5", features = ["serde"] }
serde-error = "0.1.3"

[features]
default = ["metrics"]
metrics = ["iroh-metrics"]
test = []
discovery-pkarr-dht = ["iroh-net/discovery-pkarr-dht"]
test-utils = ["iroh-net/test-utils"]
default = []

examples = ["dep:clap", "dep:indicatif", "dep:parse-size"]
examples = ["dep:clap", "dep:indicatif", "dep:parse-size", "dep:tracing-subscriber"]

[dev-dependencies]
anyhow = { version = "1" }
bao-tree = { version = "0.13", features = ["tokio_fsm"] }
futures-buffered = "0.2.4"
genawaiter = { version = "0.99", features = ["futures03"] }
iroh = { path = ".", features = ["test-utils"] }
iroh-test = "0.28.0"
proptest = "1.2.0"
rand = "0.8"
rand_chacha = "0.3.1"
regex = { version = "1.7.1", features = ["std"] }
serde_json = "1"
testdir = "0.9.1"
testresult = "0.4.0"
tokio = { version = "1", features = ["macros", "io-util", "rt"] }
tokio-stream = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "iroh_docsrs"]

[[example]]
name = "rpc"
required-features = ["examples"]

[[example]]
name = "transfer"
required-features = ["examples"]
Loading

0 comments on commit 7a519ed

Please sign in to comment.