capnproto-rust
capnproto-rust copied to clipboard
Cap'n Proto for Rust
I want to store a `Reader` inside of a struct but it only uses a reference a does not implement Clone. ```rust use super::capnp_error::CapnpError; use capnp::{message::ReaderOptions, serialize_packed}; use std::io::Cursor; pub...
Hello and thank you for your work! I am working on a project that uses a capnproto schema where most of the values are mandatory when reading a message. I...
Currently, nested capnp struct definitions translate into rust codegen builders/readers /etc that contain ALL possible generic types, even if they do not use them. For example: ``` struct RootStruct(T) {...
For similar reasons as explained in https://github.com/capnproto/capnproto-rust/pull/243#discussion_r773027692, I need an owned version of `ScratchSpaceHeapAllocator`. Here is my proposal for a growing and owned segments allocator: ```Rust use capnp::message::{Allocator, HeapAllocator}; use...
Is there any reason why [`capnp::struct_list::Reader`](https://docs.rs/capnp/0.14.5/capnp/struct_list/struct.Reader.html) and similar types are not `Send`? That makes it quite hard to use them in a async context, where each value of those iterator...
Hello! Currently `capnp::struct_list::Reader::get` can panic if the index is out of bounds because of an assertion at https://docs.capnproto-rust.org/src/capnp/struct_list.rs.html#84 This is rather unexpected as the documentation doesn't say so and the...
If an IO Error happens in the underlying Read, it is not possible to correctly identify what exactly happened (without hacks like parsing the error message). In particular, i have...
Hey anyone interested in mixing RPC + WASM + WebRTC. So far is just an interesting thought experiment but I could imagine it would be pretty great. Wonder if there...
Not sure if this is the best place to ask this question, however how exactly are we supposed to access the base interface when using interface inheritance? I've looked through...
I'm researching capnproto with intention to use it soon. From what I can see there is no support for newtypes. I believe it'd be useful. Examples of some newtypes I...