-
Notifications
You must be signed in to change notification settings - Fork 221
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
Add documentation #10
Comments
There are examples? Seriously, I can't find any examples of even the most basic usage. |
@mchaput looks like they got moved to https://github.com/dwrensha/capnpc-rust |
@dwrensha Could you provide an example of deserializing a capnp message to a Rust struct? The only example in capnpc-rust is of manually extracting the fields. |
There currently is no way to automatically convert between native Rust structs and Cap'n Proto messages. I discussed this a bit here. |
I'm curious how one even installs capnp-rust and executes it with capnpc? |
Step one is to make sure you have the Then the usual way to generate rust code from capnpc-rust is through a build script, as in this example. This invokes Alternatively, you can use the capnpc-rust binary target. You need to give the |
capnproto-rust
is currently impenetrable besides the examples. If one is not already familiar with using it in C++, it's very hard to "dive in".The text was updated successfully, but these errors were encountered: