You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not familiar with protobuff enough to generate my own messages. The Documentation mentions this but just references the C++ API and not protobuff examples or Rust ways to generate this. I noticed src/protos/config.rs has some protobuff stuff (ConfigProto) that might have a trait to generate &[u8] or cast a Message type to aligned bytes to generate &[u8] but its private. Got any pointers or references?
The text was updated successfully, but these errors were encountered:
On top of that, it seems to be impossible to use the above code from outside the crate since the proto module is private as you pointed. We need to make the proto module public.
I can't immediately answer whether the proto module should be public. For example, the above method I tried in a unit test can be generated in Python as follows:
I've avoided exposing the generated proto code so far because that would lock in a choice of protobuf libraries, and it wasn't clear which protobuf crate was going to "win". We might have to bite the bullet at some point, though.
I am not familiar with protobuff enough to generate my own messages. The Documentation mentions this but just references the C++ API and not protobuff examples or Rust ways to generate this. I noticed src/protos/config.rs has some protobuff stuff (ConfigProto) that might have a trait to generate &[u8] or cast a Message type to aligned bytes to generate &[u8] but its private. Got any pointers or references?
The text was updated successfully, but these errors were encountered: