I have a set of .capnp schema files that is being used by both the C++ capnp compiler and Rust capnp compiler. However, the rust compiler rejects annotations that is used by the c++ compiler.
Specifically, my .capnp schemas have these statements to export the types to a C++ namespace that the Rust capnpc rejects as Parse error:
using Cxx = import "/capnp/c++.capnp";
$Cxx.namespace("foo::bar::baz");
Is there anyway to get the Rust capnpc to ignore these statements?
I have a set of
.capnp
schema files that is being used by both the C++ capnp compiler and Rust capnp compiler. However, the rust compiler rejects annotations that is used by the c++ compiler.Specifically, my
.capnp
schemas have these statements to export the types to a C++ namespace that the Rust capnpc rejects asParse error
:Is there anyway to get the Rust capnpc to ignore these statements?