iroh
iroh copied to clipboard
refactor: quic-rpc simpler generics
Description
Adapts iroh for n0-computer/quic-rpc#76 Based on #2263
Wit this change, a quic client is
pub type QuicIroh = Iroh<QuinnConnection<RpcService>>
instead of
pub type QuicIroh = Iroh<QuinnConnection<ProviderRequest, ProviderResponse>>
Breaking Changes
- The generics of the iroh clients changed: Instead of taking
ProviderRequest, ProviderResponse
as generics, they now takeRpcService
Notes & open questions
Change checklist
- [ ] Self-review.
- [ ] Documentation updates if relevant.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
Needs rebase
Rebased this. Needs a quic-rpc release first though.
release is done
Rebased again and bumped quic-rpc. Should be good to go now.
Edit: quic-rpc has MSRV 1.76, so bumped ours from 1.75 to 1.76 as well.
working on deps updates here: https://github.com/n0-computer/quic-rpc/pull/80