https://github.com/dpc/iroh-dpc-rpc
dpc's Iroh rpc library
https://github.com/dpc/iroh-dpc-rpc
Last synced: 9 months ago
JSON representation
dpc's Iroh rpc library
- Host: GitHub
- URL: https://github.com/dpc/iroh-dpc-rpc
- Owner: dpc
- Created: 2025-04-20T01:29:19.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-07-03T02:06:02.000Z (11 months ago)
- Last Synced: 2025-08-21T08:36:41.637Z (10 months ago)
- Language: Rust
- Size: 84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dpc's Iroh Rpc
This is a simple RPC library for Iroh.
How it works:
* Every rpc call is its own stream.
* Each stream starts with a `u16` rpc id.
* After that both sides can send one or more length-prefixed messages,
that might encode payloads they expect.
Support:
* `bincode`-encoded messages
* `bao-tree`-encoded messages (for incremental verification)
Not exactly rocket science.
TODO:
* `cbor` encoding
* configurable msg size limits
* configurable concurrency limits
See [Echo Example](./examples/echo.rs).