-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support streaming
#230
Comments
What happens if you do this?
I expect that you'll get the same error. I think this means that your base capnproto-c++ installation is broken somehow. How did you install the Note, in any case, that capnproto-rust provides no special streaming support yet. You should be able to use methods that have the |
EDIT I meant to ask: what happens if you do this?
|
Yes, it produces the same error. |
If you get the same error when doing I think probably the best solution will be for you to additionally copy the |
I opened capnproto/capnproto#1288 upstream. |
Upstream documentation was fixed in capnproto/capnproto@ac29766 |
I'm seeing a related issue. How is one supposed to specify the location of so-called "well known" capnp files? Compiling my schema works: $ capnpc -ocapnp schema/ex.capnp | grep stream
sendChunk @0 (chunk :Data) -> stream;
but code generation fails here: capnproto-rust/capnpc/src/lib.rs Lines 352 to 358 in c702d16
my build.rs: fn main() {
capnpc::CompilerCommand::new()
.src_prefix("schema")
.file("schema/schema.capnp")
.file("capnp/stream.capnp")
.run()
.expect("schema compiler command");
} |
@tamird possibly you need to specify an import path: capnproto-rust/capnpc/src/lib.rs Lines 153 to 161 in c702d16
(I don't expect this to be necessary if the capnp c++ library and headers are installed in a standard location, but maybe yours aren't?) |
@dwrensha I'm not sure how that would help. The failure happens in the rust code generator library before capnpc is invoked. How would an import path help? |
Ah, yes, that will not help. I opened a new issue: #430 I think probably, for core schemas that come with the C++ distribution, we should include their generated Rust code in the base Until then, you need to generate code for |
It seems that a file is missing from the
capnpc-rust
distribution to support thestreaming
attribute:point.capnp
:The text was updated successfully, but these errors were encountered: