Skip to content

Commit

Permalink
refactor: move iroh-gossip to external repo (#2826)
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire authored Oct 23, 2024
1 parent b2e587d commit e659405
Show file tree
Hide file tree
Showing 26 changed files with 42 additions and 5,563 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ jobs:
# uses: obi1kenobi/cargo-semver-checks-action@v2
uses: n0-computer/cargo-semver-checks-action@feat-baseline
with:
package: iroh, iroh-base, iroh-blobs, iroh-cli, iroh-dns-server, iroh-gossip, iroh-metrics, iroh-net, iroh-net-bench, iroh-docs
package: iroh, iroh-base, iroh-blobs, iroh-cli, iroh-dns-server, iroh-metrics, iroh-net, iroh-net-bench, iroh-docs
baseline-rev: ${{ env.HEAD_COMMIT_SHA }}
use-cache: false

Expand Down Expand Up @@ -298,7 +298,7 @@ jobs:
netsim_branch: "main"
sim_paths: "sims/iroh/iroh.json,sims/integration"
pr_number: ${{ github.event.pull_request.number || '' }}

docker_build_and_test:
name: Docker Test
if: "github.event_name != 'pull_request' || ! contains(github.event.pull_request.labels.*.name, 'flaky-test')"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ env:
RUSTFLAGS: -Dwarnings
RUSTDOCFLAGS: -Dwarnings
SCCACHE_CACHE_SIZE: "50G"
CRATES_LIST: "iroh,iroh-blobs,iroh-gossip,iroh-metrics,iroh-net,iroh-net-bench,iroh-docs,iroh-test,iroh-cli,iroh-dns-server"
CRATES_LIST: "iroh,iroh-blobs,iroh-metrics,iroh-net,iroh-net-bench,iroh-docs,iroh-test,iroh-cli,iroh-dns-server"
IROH_FORCE_STAGING_RELAYS: "1"

jobs:
Expand Down Expand Up @@ -218,7 +218,7 @@ jobs:
env:
RUST_LOG: ${{ runner.debug && 'TRACE' || 'DEBUG'}}
NEXTEST_EXPERIMENTAL_LIBTEST_JSON: 1

- name: upload results
if: ${{ failure() && inputs.flaky }}
uses: actions/upload-artifact@v4
Expand Down
7 changes: 2 additions & 5 deletions Cargo.lock

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

12 changes: 10 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ members = [
"iroh-blobs",
"iroh-base",
"iroh-dns-server",
"iroh-gossip",
"iroh-metrics",
"iroh-net",
"iroh-docs",
Expand All @@ -19,7 +18,7 @@ debug = true

[profile.dev-ci]
inherits = 'dev'
opt-level = 1
opt-level = 1

[profile.optimized-release]
inherits = 'release'
Expand All @@ -46,3 +45,12 @@ unexpected_cfgs = { level = "warn", check-cfg = ["cfg(iroh_docsrs)"] }

[workspace.lints.clippy]
unused-async = "warn"

# Temporary fix for dependencies
[patch.crates-io]
iroh-base = { path = "./iroh-base" }
iroh-net = { path = "./iroh-net" }
iroh-blobs = { path = "./iroh-blobs" }
iroh-metrics = { path = "./iroh-metrics" }
iroh-docs = { path = "./iroh-docs" }
iroh-test = { path = "./iroh-test" }
2 changes: 1 addition & 1 deletion iroh-base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ url = { version = "2.5.0", features = ["serde"], optional = true }
getrandom = { version = "0.2", default-features = false, optional = true }

[dev-dependencies]
iroh-test = { path = "../iroh-test" }
iroh-test = "0.27.0"
proptest = "1.0.0"
serde_json = "1.0.107"
serde_test = "1.0.176"
Expand Down
8 changes: 4 additions & 4 deletions iroh-blobs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ futures-lite = "2.3"
genawaiter = { version = "0.99.1", features = ["futures03"] }
hashlink = { version = "0.9.0", optional = true }
hex = "0.4.3"
iroh-base = { version = "0.27.0", features = ["redb"], path = "../iroh-base" }
iroh-base = { version = "0.27.0", features = ["redb"] }
iroh-io = { version = "0.6.0", features = ["stats"] }
iroh-metrics = { version = "0.27.0", path = "../iroh-metrics", default-features = false }
iroh-net = { version = "0.27.0", path = "../iroh-net" }
iroh-metrics = { version = "0.27.0", default-features = false }
iroh-net = { version = "0.27.0" }
num_cpus = "1.15.0"
oneshot = "0.1.8"
parking_lot = { version = "0.12.1", optional = true }
Expand All @@ -55,7 +55,7 @@ tracing-futures = "0.2.5"
[dev-dependencies]
http-body = "0.4.5"
iroh-blobs = { path = ".", features = ["downloader"] }
iroh-test = { path = "../iroh-test" }
iroh-test = "0.27.0"
futures-buffered = "0.2.4"
proptest = "1.0.0"
serde_json = "1.0.107"
Expand Down
4 changes: 2 additions & 2 deletions iroh-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ hex = "0.4.3"
human-time = "0.1.6"
indicatif = { version = "0.17", features = ["tokio"] }
iroh = { version = "0.27.0", path = "../iroh", features = ["metrics"] }
iroh-gossip = { version = "0.27.0", path = "../iroh-gossip" }
iroh-metrics = { version = "0.27.0", path = "../iroh-metrics" }
iroh-gossip = "0.27.0"
iroh-metrics = { version = "0.27.0" }
parking_lot = "0.12.1"
pkarr = { version = "2.2.0", default-features = false }
portable-atomic = "1"
Expand Down
6 changes: 3 additions & 3 deletions iroh-dns-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ governor = "0.6.3"
hickory-proto = "=0.25.0-alpha.2"
hickory-server = { version = "=0.25.0-alpha.2", features = ["dns-over-rustls"] }
http = "1.0.0"
iroh-metrics = { version = "0.27.0", path = "../iroh-metrics" }
iroh-metrics = { version = "0.27.0" }
lru = "0.12.3"
mainline = "2.0.1"
parking_lot = "0.12.1"
Expand Down Expand Up @@ -53,8 +53,8 @@ z32 = "1.1.1"

[dev-dependencies]
hickory-resolver = "=0.25.0-alpha.2"
iroh-net = { version = "0.27.0", path = "../iroh-net" }
iroh-test = { path = "../iroh-test" }
iroh-net = { version = "0.27.0" }
iroh-test = "0.27.0"
pkarr = { version = "2.2.0", features = ["rand"] }

[package.metadata.docs.rs]
Expand Down
12 changes: 6 additions & 6 deletions iroh-docs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ futures-buffered = "0.2.4"
futures-lite = "2.3.0"
futures-util = { version = "0.3.25" }
hex = "0.4"
iroh-base = { version = "0.27.0", path = "../iroh-base" }
iroh-blobs = { version = "0.27.0", path = "../iroh-blobs", optional = true, features = ["downloader"] }
iroh-gossip = { version = "0.27.0", path = "../iroh-gossip", optional = true }
iroh-metrics = { version = "0.27.0", path = "../iroh-metrics", default-features = false }
iroh-net = { version = "0.27.0", optional = true, path = "../iroh-net" }
iroh-base = { version = "0.27.0" }
iroh-blobs = { version = "0.27.0", optional = true, features = ["downloader"] }
iroh-gossip = { version = "0.27.0", optional = true }
iroh-metrics = { version = "0.27.0", default-features = false }
iroh-net = { version = "0.27.0", optional = true }
lru = "0.12"
num_enum = "0.7"
postcard = { version = "1", default-features = false, features = ["alloc", "use-std", "experimental-derive"] }
Expand All @@ -48,7 +48,7 @@ tokio-util = { version = "0.7.12", optional = true, features = ["codec", "io-uti
tracing = "0.1"

[dev-dependencies]
iroh-test = { path = "../iroh-test" }
iroh-test = "0.27.0"
rand_chacha = "0.3.1"
tokio = { version = "1", features = ["sync", "macros"] }
proptest = "1.2.0"
Expand Down
67 changes: 0 additions & 67 deletions iroh-gossip/Cargo.toml

This file was deleted.

29 changes: 0 additions & 29 deletions iroh-gossip/README.md

This file was deleted.

Loading

0 comments on commit e659405

Please sign in to comment.