Skip to content

Commit 1626403

Browse files
authored
feat: implement custom stream protocol, perform catchup over stream protocol (#13)
* feat: implement custom stream protocol, perform catchup over stream protocol * feat: perform catchup after manual subscription * feat: perform catchup if needed on subscribed network event * chore: define full semantic version for bytes dependency
1 parent b460f3f commit 1626403

File tree

11 files changed

+910
-179
lines changed

11 files changed

+910
-179
lines changed

Cargo.lock

+69-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/chat/Cargo.toml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
[package]
22
name = "chat-example"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
authors = ["Calimero Limited <info@calimero.network>"]
55
edition = "2021"
66
repository = "https://github.com/calimero-network/boot-node"
77
license = "MIT OR Apache-2.0"
88

99
[dependencies]
10+
bytes = "1.6.0"
1011
clap = { version = "4.5.4", features = ["derive", "env"] }
1112
eyre = "0.6.12"
13+
futures-util = { version = "0.3.30" }
1214
libp2p = { version = "0.53.2", features = [
1315
"dcutr",
1416
"dns",
@@ -27,15 +29,21 @@ libp2p = { version = "0.53.2", features = [
2729
"tls",
2830
"yamux",
2931
] }
32+
libp2p-stream = "0.1.0-alpha.1"
3033
multiaddr = "0.18.1"
3134
owo-colors = "4.0.0"
32-
serde = "1.0.196"
35+
serde = { version = "1.0.196", features = ["derive"] }
3336
serde_json = "1.0.113"
37+
thiserror = "1.0.56"
3438
tokio = { version = "1.35.1", features = [
3539
"io-std",
3640
"macros",
3741
"rt",
3842
"rt-multi-thread",
3943
] }
44+
tokio-util = { version = "0.7.11", features = ["codec", "compat"] }
4045
tracing = "0.1.37"
4146
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
47+
48+
[dev-dependencies]
49+
tokio-test = { version = "0.4.4" }

0 commit comments

Comments
 (0)