Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iroh ctl into iroh one #296

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ members = [
"iroh",
"iroh-bitswap",
"iroh-car",
"iroh-ctl",
"iroh-rpc-client",
"iroh-rpc-types",
"iroh-gateway",
Expand Down
52 changes: 0 additions & 52 deletions iroh-ctl/Cargo.toml

This file was deleted.

26 changes: 0 additions & 26 deletions iroh-ctl/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions iroh-ctl/src/lib.rs

This file was deleted.

14 changes: 0 additions & 14 deletions iroh-ctl/src/main.rs

This file was deleted.

9 changes: 0 additions & 9 deletions iroh-ctl/src/metrics.rs

This file was deleted.

150 changes: 0 additions & 150 deletions iroh-ctl/src/run.rs

This file was deleted.

21 changes: 21 additions & 0 deletions iroh-one/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ readme = "README.md"
repository = "https://github.com/dignifiedquire/iroh"
version = "0.1.0"

[[bin]]
path = "src/main.rs"
name = "iroh"

[dependencies]
anyhow = "1"
async-trait = "0.1.56"
Expand All @@ -30,10 +34,25 @@ serde = {version = "1.0", features = ["derive"]}
tempdir = "0.3.7"
tokio = {version = "1", features = ["macros", "rt-multi-thread", "process"]}
tracing = "0.1.33"
crossterm = "0.25"
tonic = "0.8"
iroh = { path = "../iroh"}
libp2p = { version = "0.49", default-features = false }

[dev-dependencies]
axum-macros = "0.2.0" # use #[axum_macros::debug_handler] for better error messages on handlers
http = "0.2"
trycmd = "0.13.7"
iroh = { path = "../iroh", features = ["testing"] }
# We want to compile the `iroh` CLI in test mode, but we can't specify that yet:
# https://github.com/rust-lang/cargo/issues/1982
# This is a workaround for enabling features only during testing:
# https://github.com/DesmondWillowbrook/cargo-optional-features-for-testing-and-examples
# It is needed to have trycmd invoke a version of the iroh CLI in testing
# mode. trycmd needs to have an actual binary to invoke.
# Unfortunately this also turns on the feature during development, which may be
# confusing. See the comments in `run.rs` surrounding this.
iroh-one = { path = ".", features = ["testing"] }

[features]
default = ["rpc-mem", "rpc-grpc"]
Expand All @@ -42,3 +61,5 @@ rpc-mem = ["iroh-rpc-types/mem", "iroh-rpc-client/mem"]
# uds-gateway controls whether http over uds is enabled. This is independent of the
# rpc-grpc control endpoint.
uds-gateway = []
# testing controls whether we want to run the CLI in testing mode
testing = []
2 changes: 1 addition & 1 deletion iroh-one/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services as micro services.

## Running / Building

`cargo run --release -- -p 10000 --store-path=tmpstore`
`cargo run --release -- start -p 10000 --store-path=tmpstore`

### Options

Expand Down
Loading