Upgrade capnp 0.20 → 0.25, capnp-rpc 0.20 → 0.25

RPC trait methods changed from &mut self to self: Rc<Self> and
return types from Promise<(), Error> to impl Future<Output = Result<...>>.

Updated all Server impls across 6 files: DaemonImpl (rpc.rs),
NotifyForwarder (channels.rs), and ChannelServerImpl in all channel
crates (irc, telegram, tmux, socat). Local pry! macro replaces
capnp_rpc::pry to match the new impl Future return type.

Warning-clean workspace build.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-07 12:02:59 -04:00
parent 382ebc95aa
commit a421c3c9f3
12 changed files with 221 additions and 192 deletions

View file

@ -19,7 +19,7 @@ version.workspace = true
edition.workspace = true
[dependencies]
capnp = "0.20"
capnp = "0.25"
uuid = { version = "1", features = ["v4"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
@ -52,13 +52,13 @@ log = "0.4"
ratatui = { version = "0.30", features = ["unstable-rendered-line-info"] }
crossterm = { version = "0.29", features = ["event-stream"] }
skillratings = "0.28"
capnp-rpc = "0.20"
capnp-rpc = "0.25"
tokio-util = { version = "0.7", features = ["compat"] }
env_logger = "0.11"
tokio-scoped = "0.2.0"
[build-dependencies]
capnpc = "0.20"
capnpc = "0.25"
[lib]
name = "poc_memory"