The current generated code doesn't seem to include the "Unique IDs" of the struct / enum / interface / annotation.
Could we add something like a const TYPE_ID: u64 = id in every relevant mod ?
Also, it would probably be difficult to keep an interface similar to the C++ one capnp::typeId<CapnprotoType>();: as a capnproto type is defined as a module, I don't think it is possible to take it as a parameter in a function or make it implement a HasTypeId trait (although it should be possible for a Reader or Builder)
The current generated code doesn't seem to include the "Unique IDs" of the struct / enum / interface / annotation. Could we add something like a
const TYPE_ID: u64 = id
in every relevantmod
?Also, it would probably be difficult to keep an interface similar to the C++ one
capnp::typeId<CapnprotoType>();
: as a capnproto type is defined as a module, I don't think it is possible to take it as a parameter in a function or make it implement aHasTypeId
trait (although it should be possible for a Reader or Builder)