Skip to content

Commit 4cb8e79

Browse files
committed
Separate cli crate
1 parent ced16b0 commit 4cb8e79

File tree

6 files changed

+47
-14
lines changed

6 files changed

+47
-14
lines changed

content-discovery/Cargo.lock

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

content-discovery/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[workspace]
22
members = [
33
"iroh-mainline-content-discovery",
4+
"iroh-mainline-content-discovery-cli",
45
"iroh-mainline-tracker",
56
]
67
resolver = "2"
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[package]
2+
name = "iroh-mainline-content-discovery-cli"
3+
version = "0.3.0"
4+
edition = "2021"
5+
description = "Content discovery for iroh, using the bittorrent mainline DHT"
6+
license = "MIT OR Apache-2.0"
7+
8+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
9+
10+
[dependencies]
11+
# Required features for the protocol types.
12+
#
13+
# The protocol is using postcard, but we don't need a postcard dependency for just the type definitions
14+
iroh-net = "0.12.0"
15+
iroh-bytes = "0.12.0"
16+
iroh-mainline-content-discovery = { path = "../iroh-mainline-content-discovery" }
17+
tracing = { version = "0.1" }
18+
quinn = { version = "0.10" }
19+
iroh-pkarr-node-discovery = { version = "0.1.2" }
20+
mainline = { version = "1.0.0" }
21+
anyhow = { version = "1", features = ["backtrace"] }
22+
futures = { version = "0.3.25" }
23+
24+
# Optional features for the cli
25+
clap = { version = "4", features = ["derive"] }
26+
tempfile = { version = "3.4" }
27+
derive_more = { version = "1.0.0-beta.1", features = ["debug", "display", "from", "try_into"] }
28+
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
29+
tokio = { version = "1", features = ["io-util", "rt"] }

content-discovery/iroh-mainline-content-discovery/Cargo.toml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,6 @@ rcgen = { version = "0.12.0", optional = true }
2727
rustls = { version = "0.21", optional = true }
2828
genawaiter = { version = "0.99.1", features = ["futures03"], optional = true }
2929

30-
# Optional features for the cli
31-
clap = { version = "4", features = ["derive"], optional = true }
32-
tempfile = { version = "3.4", optional = true }
33-
derive_more = { version = "1.0.0-beta.1", features = ["debug", "display", "from", "try_into"], optional = true }
34-
tracing-subscriber = { version = "0.3", features = ["env-filter"], optional = true }
35-
tokio = { version = "1", features = ["io-util", "rt"], optional = true }
36-
3730
[features]
3831
client = ["iroh-pkarr-node-discovery", "mainline", "quinn", "tracing", "anyhow", "rcgen", "genawaiter", "rustls", "futures", "postcard"]
39-
cli = ["client", "clap", "tempfile", "derive_more", "tracing-subscriber", "tokio"]
4032
default = ["client"]
41-
42-
[[bin]]
43-
name = "iroh-mainline-content-discovery"
44-
required-features = ["cli"]

0 commit comments

Comments
 (0)