Hello everyone,
I posted a message to the Sandstorm list about trying to set a Capability field on a Params struct using capnproto-rust:
It seems that capnproto-rust does not support Capabilities. I would like to know how difficult it would be to add this support. I have sorted out how to generate the set_cap() method by modifying capnproto-rust/capnpc/src/codegen.rs:generate_setter. I have not sorted out what code should be generated and larger design questions.
By design questions, I mean, for example, in capnproto-rust/capnpc/src/codegen_types.rs, does Capability fit as a member of pub enum Leaf? (I expected to see AnyPointer there.)
I am inexperienced with both Rust and Cap'n Proto and eager to understand both better. Your patience is appreciated.
Thanks,
Troy