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

refactor(iroh-willow): use willow-rs #2616

Merged
merged 30 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b9fb6f2
refactor: add willow-rs dependencies
Frando Aug 11, 2024
682d4af
[wip] refactor: start to use willow-rs
Frando Aug 11, 2024
b422c3f
wip: use willow-rs types
Frando Aug 12, 2024
a068573
wip: convert most modules
Frando Aug 12, 2024
f8bdc5f
wip: port the rest of it
Frando Aug 12, 2024
0b5456d
fix: cargo fix
Frando Aug 12, 2024
1eed65d
chore: clippy fix
Frando Aug 12, 2024
33f2fcb
cleanup
Frando Aug 12, 2024
c2d0015
fix: cleanup imports
Frando Aug 12, 2024
c09f930
chore: change cargo patch
Frando Aug 12, 2024
95b3a19
chore: cleanup
Frando Aug 12, 2024
8a104f1
refactor: further cleanup
Frando Aug 12, 2024
f43e0b4
fix: use their_max_payload_size
Frando Aug 12, 2024
87a11e9
fix: update willow-rs fork
Frando Aug 13, 2024
5a77c9f
Merge branch 'willow' into willow-use-willow-rs
Frando Aug 13, 2024
b9fdb49
fix: typos, more docs, clippy
Frando Aug 13, 2024
41ad6c9
Merge branch 'willow' into willow-use-willow-rs
Frando Aug 13, 2024
5e1a613
chore: allow public domain license and n0 repos, update yanked crates
Frando Aug 13, 2024
0de4c01
fix: properly create owned vs communal namespaces
Frando Aug 13, 2024
cd25c48
fix: debugging things
Frando Aug 13, 2024
085913e
chore: fmt
Frando Aug 13, 2024
e9d2d84
chore: cargo deny updates
Frando Aug 13, 2024
01e253d
chore: deny.toml fix
Frando Aug 13, 2024
b8061b8
feat: big round of docs updates and pub exposure changes
Frando Aug 13, 2024
965179a
fixup
Frando Aug 13, 2024
3b07a1b
chore: fmt
Frando Aug 13, 2024
e3ee3af
chore: codespell
Frando Aug 13, 2024
c537698
fixup
Frando Aug 13, 2024
46ff9bf
fixup
Frando Aug 13, 2024
723f21c
chore: typo
Frando Aug 13, 2024
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
187 changes: 135 additions & 52 deletions Cargo.lock

Large diffs are not rendered by default.

32 changes: 20 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[workspace]
members = [
"iroh",
"iroh-blobs",
"iroh-base",
"iroh-dns-server",
"iroh-gossip",
"iroh-metrics",
"iroh-net",
"iroh-docs",
"iroh-test",
"iroh-net/bench",
"iroh-cli",
"iroh-willow",
"iroh",
"iroh-blobs",
"iroh-base",
"iroh-dns-server",
"iroh-gossip",
"iroh-metrics",
"iroh-net",
"iroh-docs",
"iroh-test",
"iroh-net/bench",
"iroh-cli",
"iroh-willow",
]
resolver = "2"

Expand Down Expand Up @@ -41,3 +41,11 @@ missing_debug_implementations = "warn"

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

[patch.crates-io]
# willow-data-model = { path = "../willow-rs/data-model" }
# willow-encoding = { path = "../willow-rs/encoding" }
# meadowcap = { path = "../willow-rs/meadowcap" }
willow-data-model = { git = "https://github.com/Frando/willow-rs.git", branch = "iroh-dev" }
willow-encoding = { git = "https://github.com/Frando/willow-rs.git", branch = "iroh-dev" }
meadowcap = { git = "https://github.com/Frando/willow-rs.git", branch = "iroh-dev" }
5 changes: 5 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ allow = [
"Unicode-DFS-2016",
"Zlib",
"MPL-2.0", # https://fossa.com/blog/open-source-software-licenses-101-mozilla-public-license-2-0/
"CC-PDDC" # https://spdx.org/licenses/CC-PDDC.html
]

[[licenses.clarify]]
Expand All @@ -31,3 +32,7 @@ license-files = [
[advisories]
ignore = [
]

# TODO(Frando): added for iroh-willow development, maybe remove again before release?
[sources.allow-org]
github = ["n0-computer", "earthstar-project"]
21 changes: 13 additions & 8 deletions iroh-willow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,39 @@ workspace = true
[dependencies]
anyhow = "1"
bytes = { version = "1.4", features = ["serde"] }
derive_more = { version = "1.0.0-beta.6", features = ["debug", "deref", "display", "from", "try_into", "into", "as_ref", "try_from"] }
curve25519-dalek = { version = "4.1.3", features = [ "digest", "rand_core", "serde", ] }
derive_more = { version = "1.0.0-beta.6", features = [ "debug", "deref", "display", "from", "try_into", "into", "as_ref", "try_from", ] }
ed25519-dalek = { version = "2.0.0", features = ["serde", "rand_core"] }
flume = "0.11"
futures-buffered = "0.2.6"
futures-concurrency = "7.6.0"
futures-lite = "2.3.0"
futures-util = "0.3.30"
genawaiter = "0.99.1"
hex = "0.4.3"
iroh-base = { version = "0.22.0", path = "../iroh-base" }
iroh-blobs = { version = "0.22.0", path = "../iroh-blobs" }
iroh-metrics = { version = "0.22.0", path = "../iroh-metrics", optional = true }
iroh-net = { version = "0.22.0", path = "../iroh-net" }
iroh-blobs = { version = "0.22.0", path = "../iroh-blobs" }
postcard = { version = "1", default-features = false, features = ["alloc", "use-std", "experimental-derive"] }
meadowcap = "0.1.0"
postcard = { version = "1", default-features = false, features = [ "alloc", "use-std", "experimental-derive", ] }
quinn = { package = "iroh-quinn", version = "0.10.5" }
rand = "0.8.5"
rand_core = "0.6.4"
redb = { version = "2.0.0" }
serde = { version = "1.0.164", features = ["derive"] }
sha2 = "0.10.8"
strum = { version = "0.26", features = ["derive"] }
syncify = "0.1.0"
thiserror = "1"
tokio = { version = "1", features = ["sync"] }
tokio-stream = { version = "0.1.15", features = ["sync"] }
tokio-util = { version = "0.7", features = ["io-util", "io"] }
tracing = "0.1"
ufotofu = { version = "0.4.1", features = ["std"] }
willow-data-model = "0.1.0"
willow-encoding = "0.1.0"
zerocopy = { version = "0.8.0-alpha.9", features = ["derive"] }
hex = "0.4.3"
curve25519-dalek = { version = "4.1.3", features = ["digest", "rand_core", "serde"] }
sha2 = "0.10.8"
futures-buffered = "0.2.6"
tokio-stream = { version = "0.1.15", features = ["sync"] }

[dev-dependencies]
iroh-test = { path = "../iroh-test" }
Expand Down
Loading
Loading