Skip to content

Reading messages dynamically without capnpc generation #543

Open
@anlumo

Description

@anlumo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions