-
Notifications
You must be signed in to change notification settings - Fork 223
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
API is not very ergonomic #151
Comments
Also unless I am missing something, if you do want to load everything into memory, the fact that
|
Thanks for the feedback! There was discussion about mapping into Rust-native structs over on issue #136. Have you looked at |
Ah yes #136 looks promising though! I'll close this because it's essentially the same. |
Compare:
Prost
Generated Code
Decode
Capnp
Generated Code
Decode
I don't actually know how to do the equivalent of Prost's
decode()
- i.e. read everything into a nice struct in memory. In C++ land we basically do it all manually, which is a huge pain.It would be a lot nicer if this could just generate normal structs with a
#[derive()]
macro. I assume you didn't do this because it gives up on the zero copy stuff, but frankly I doubt many people would be willing to go to this level of API awkwardness for a very small performance increase.The text was updated successfully, but these errors were encountered: