You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to read Cap'n Proto messages where the schema is only known at runtime. capnproto-c++ does support runtime schema loading, but capnproto-rust does not.
The examples always start with a type from capnpc-generated code and then downcast to dynamic_value, dynamic_struct, etc., but there is no way to get there from a capnp::message::Reader.
Same goes for creating messages based on dynamic_value etc..
It would be great to have this feature added.
The text was updated successfully, but these errors were encountered:
Unfortunately, using C++ is not an option (I have to support wasm, where mixing Rust and C++ is hard to impossible). Is there any chance that this will be added?
anlumo
changed the title
Reading messages without capnpc generation?
Reading messages dynamically without capnpc generation
Jan 30, 2025
I'm trying to read Cap'n Proto messages where the schema is only known at runtime. capnproto-c++ does support runtime schema loading, but capnproto-rust does not.
The examples always start with a type from capnpc-generated code and then downcast to dynamic_value, dynamic_struct, etc., but there is no way to get there from a
capnp::message::Reader
.Same goes for creating messages based on dynamic_value etc..
It would be great to have this feature added.
The text was updated successfully, but these errors were encountered: