(rust) prost: added simple protobuf sample for testing
This commit is contained in:
1 parent
4933c7dd14
commit
a7d09cb062
6 files changed
+44
-16
No files matched your search
@@ -0,0 +1,5 @@
|
||||
// pub mod protest;
|
||||
|
||||
pub mod protest {
|
||||
include!(concat!(env!("OUT_DIR"), "/protest.rs"));
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package protest;
|
||||
|
||||
message Payload {
|
||||
/*
|
||||
* The package index of the given message, so which part of the message is
|
||||
* currently being loaded.
|
||||
*/
|
||||
uint64 index = 1;
|
||||
/*
|
||||
* The total block count.
|
||||
*/
|
||||
uint64 blocks = 2;
|
||||
/*
|
||||
* The resulting payload to be loaded
|
||||
*/
|
||||
bytes payload = 3;
|
||||
}
|
||||
Reference in new issue
Block a user