Skip to content

Commit

Permalink
remove examples depending on iroh-blobs
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Nov 21, 2024
1 parent 482d2f3 commit 8fa6f0d
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 935 deletions.
125 changes: 2 additions & 123 deletions Cargo.lock

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

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,3 @@ iroh-net = { path = "./iroh-net" }
iroh-metrics = { path = "./iroh-metrics" }
iroh-test = { path = "./iroh-test" }
iroh-router = { path = "./iroh-router" }

iroh-blobs = { git = "https://github.com/n0-computer/iroh-blobs", branch = "main" }
3 changes: 0 additions & 3 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,3 @@ ignore = [
"RUSTSEC-2024-0370", # unmaintained, no upgrade available
"RUSTSEC-2024-0384", # unmaintained, no upgrade available
]

[sources]
allow-git = ["https://github.com/n0-computer/iroh-blobs.git"]
29 changes: 1 addition & 28 deletions iroh/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ ref-cast = "1.0.23"
# Examples
clap = { version = "4", features = ["derive"], optional = true }
indicatif = { version = "0.17", features = ["tokio"], optional = true }
console = { version = "0.15.5", optional = true }
iroh-blobs = { version = "0.28", optional = true, features = [
"rpc",
"downloader",
"net_protocol",
] }

# Documentation tests
url = { version = "2.5.0", features = ["serde"] }
Expand All @@ -81,12 +75,7 @@ test = []
discovery-pkarr-dht = ["iroh-net/discovery-pkarr-dht"]
test-utils = ["iroh-net/test-utils"]

examples = ["dep:clap", "dep:indicatif", "dep:iroh-blobs"]
example-discovery-local-network = [
"iroh-net/discovery-local-network",
"examples",
"dep:console",
]
examples = ["dep:clap", "dep:indicatif"]

[dev-dependencies]
anyhow = { version = "1" }
Expand All @@ -110,22 +99,6 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] }
all-features = true
rustdoc-args = ["--cfg", "iroh_docsrs"]

[[example]]
name = "hello-world-provide"
required-features = ["examples"]

[[example]]
name = "hello-world-fetch"
required-features = ["examples"]

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

[[example]]
name = "custom-protocol"
required-features = ["examples"]

[[example]]
name = "local-swarm-discovery"
required-features = ["example-discovery-local-network"]
Loading

0 comments on commit 8fa6f0d

Please sign in to comment.