capnproto-rust
capnproto-rust copied to clipboard
Cap'n Proto for Rust
HasStructSize::struct_size() was added at a time when Rust did not yet have associated constants. Converting it from a method to a constant makes it available for usage at compile time.
I've been playing around with the Sandstorm bindings, and often I've had problems interpreting the methods from the generated docs. I end up bouncing back and forth between the capnp...
Suppose I have a capnproto enum definition. Is there any way to get the raw u16 value of the enum and set the same raw u16 value on a builder...
I'm just looking at the examples for this library, and tbh the amount of boilerplate is kind of intimidating. All this flexibility (and performance?) is of course nice when you...
I'm trying to use `capnp_futures` with tokio, but there aren't many examples around. I'm running into some difficulty when I try to schedule the future to write messages. If I...
This uses Generic Associated Types, which are not on stable rust yet. Also, it looks like it's getting pretty complicated, and it's still in very rough draft proof-of-concept form. It...
Hello! I'm just starting to use capnproto for a hobby project and I really like it so far. I have some questions about things that aren't documented as much. **Background**:...
such as throughput compared with gRPC?
I've set up a RPC server using `capnp_rpc` following the examples given in the repo. The code looks like: ```rust let addr = ([0, 0, 0, 0], port).into(); let socket...
Currently, the code (especially [layout.rs]) is horribly unsafe. In fact, it appears less safe than even the C++ version, which uses template metaprogramming to catch overflow at compile time. While...