Skip to content

Commit

Permalink
refactor: move code into workspace package
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Jun 21, 2023
1 parent 80e8eca commit 0fb0a17
Show file tree
Hide file tree
Showing 82 changed files with 397 additions and 125 deletions.
180 changes: 180 additions & 0 deletions Cargo.lock

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

131 changes: 6 additions & 125 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,128 +1,9 @@
[package]
name = "iroh"
version = "0.4.1"
edition = "2021"
readme = "README.md"
description = "IPFS reimagined"
license = "MIT/Apache-2.0"
authors = ["dignifiedquire <me@dignifiedquire.com>", "n0 team"]
repository = "/~https://github.com/n0-computer/iroh"
default-run = "iroh"

# Sadly this also needs to be updated in .github/workflows/ci.yml
rust-version = "1.65"

[dependencies]
anyhow = { version = "1", features = ["backtrace"] }
backoff = "0.4.0"
bao-tree = { version = "0.3.2", features = ["tokio_fsm"], default-features = false }
blake3 = "1.3.3"
bytes = { version = "1.4", features = ["serde"] }
clap = { version = "4", features = ["derive"], optional = true }
config = { version = "0.13.1", default-features = false, features = ["toml", "preserve_order"] }
console = { version = "0.15.5", optional = true }
crypto_box = { version = "0.9.0-rc.0", features = ["serde", "chacha20"] }
curve25519-dalek = "=4.0.0-rc.2"
data-encoding = { version = "2.3.3" }
default-net = "0.15"
der = { version = "0.7", features = ["alloc", "derive"] }
derive_more = { version = "0.99.17", git = "/~https://github.com/JelteF/derive_more", features = ["debug", "display", "from", "try_into"] }
dirs-next = "2.0.0"
ed25519-dalek = { version = "=2.0.0-rc.2", features = ["serde", "rand_core"] }
flume = "0.10.14"
futures = "0.3.25"
futures-rustls = "0.24.0"
governor = "0.5.1"
hex = "0.4.3"
hostname = "0.3.1"
http = "0.2.9"
hyper = { version = "0.14.25", features = ["server", "client", "http1", "tcp"] }
indicatif = { version = "0.17", features = ["tokio"], optional = true }
libc = "0.2.139"
multibase = { version = "0.9.1", optional = true }
num_cpus = "1.15.0"
once_cell = "1.17.0"
os_info = "3.6.0"
paste = "1.0.12"
portable-atomic = "1"
postcard = { version = "1", default-features = false, features = ["alloc", "use-std", "experimental-derive"] }
prometheus-client = { version = "0.21.0", optional = true }
quic-rpc = { version = "0.6", default-features = false, features = ["quinn-transport", "flume-transport"] }
quinn = "0.10"
quinn-proto = "0.10"
quinn-udp = "0.4"
rand = "0.8"
range-collections = "0.4.0"
rcgen = "0.10"
regex = { version = "1.7.1", optional = true }
reqwest = { version = "0.11.14", default-features = false, features = ["rustls-tls"] }
ring = "0.16.20"
rustls = { version = "0.21", default-features = false, features = ["dangerous_configuration"] }
rustls-pemfile = { version = "1.0.2", optional = true }
self_cell = "1.0.1"
serde = { version = "1", features = ["derive"] }
serde-error = "0.1.2"
serdect = "0.2.0"
smallvec = { version = "1.10.0", features = ["serde", "const_new"] }
socket2 = "0.5.3"
ssh-key = { version = "0.6.0-rc.0", features = ["ed25519", "std", "rand_core"] }
stun-rs = "0.1.4"
subtle = "2.4"
surge-ping = "0.8.0"
tempfile = "3.4"
thiserror = "1"
time = "0.3.20"
tokio = { version = "1", features = ["full"] }
tokio-rustls = { version = "0.24", optional = true }
tokio-rustls-acme = { version = "0.1", optional = true }
tokio-stream = "0.1"
tokio-util = { version = "0.7", features = ["io-util", "io", "rt"] }
toml = { version = "0.7.3", optional = true }
tracing = "0.1"
tracing-futures = "0.2.5"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
trust-dns-resolver = "0.22.0"
walkdir = "2"
webpki = { version = "0.22", features = ["std"] }
webpki-roots = "0.23.0"
wg = "0.3.1"
x509-parser = "0.15"
zeroize = "1.5"

[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
netlink-packet-route = "0.15.0"
rtnetlink = "0.12.0"

[target.'cfg(target_os = "windows")'.dependencies]
wmi = "0.13"

[dev-dependencies]
duct = "0.13.6"
http-body = "0.4.5"
nix = "0.26.2"
proptest = "1.0.0"
rand = "0.8"
regex = { version = "1.7.1", features = ["std"] }
testdir = "0.7.2"
tokio = { version = "1", features = ["full", "test-util"] }

[features]
cli = ["clap", "console", "indicatif", "multibase"]
default = ["cli", "derper", "metrics"]
derper = ["tokio-rustls", "tokio-rustls-acme", "toml", "rustls-pemfile", "regex"]
metrics = ["prometheus-client"]
test = []

[[bin]]
name = "iroh"
required-features = ["cli"]

[[bin]]
name = "derper"
required-features = ["cli", "derper"]

[build-dependencies]
build-data = "0.1.3"
[workspace]
members = [
"iroh",
"iroh-net",
"iroh-bytes",
]

[profile.optimized-release]
inherits = 'release'
Expand Down
14 changes: 14 additions & 0 deletions iroh-bytes/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "iroh-bytes"
version = "0.4.1"
edition = "2021"
readme = "README.md"
description = "IPFS reimagined"
license = "MIT/Apache-2.0"
authors = ["dignifiedquire <me@dignifiedquire.com>", "n0 team"]
repository = "/~https://github.com/n0-computer/iroh"

# Sadly this also needs to be updated in .github/workflows/ci.yml
rust-version = "1.65"

[dependencies]
20 changes: 20 additions & 0 deletions iroh-bytes/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# iroh-bytes


# License

This project is licensed under either of

* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
http://opensource.org/licenses/MIT)

at your option.

### Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in this project by you, as defined in the Apache-2.0 license,
shall be dual licensed as above, without any additional terms or conditions.

Empty file added iroh-bytes/src/lib.rs
Empty file.
14 changes: 14 additions & 0 deletions iroh-net/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[package]
name = "iroh-net"
version = "0.4.1"
edition = "2021"
readme = "README.md"
description = "IPFS reimagined"
license = "MIT/Apache-2.0"
authors = ["dignifiedquire <me@dignifiedquire.com>", "n0 team"]
repository = "/~https://github.com/n0-computer/iroh"

# Sadly this also needs to be updated in .github/workflows/ci.yml
rust-version = "1.65"

[dependencies]
19 changes: 19 additions & 0 deletions iroh-net/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# iroh-net


# License

This project is licensed under either of

* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
http://opensource.org/licenses/MIT)

at your option.

### Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in this project by you, as defined in the Apache-2.0 license,
shall be dual licensed as above, without any additional terms or conditions.
Empty file added iroh-net/src/lib.rs
Empty file.
Loading

0 comments on commit 0fb0a17

Please sign in to comment.