feat: with example code

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-09-24 16:27:06 +02:00
parent d37462941c
commit 38f41db98c
9 changed files with 359 additions and 6 deletions

View File

@@ -0,0 +1,7 @@
syntax = "proto3";
package test.can.generate.output.rust;
message MyEvent {
string name = 1;
}

View File

@@ -0,0 +1 @@
pub mod test_can_generate_output_rust { include!("test.can.generate.output.rust.rs"); }

View File

@@ -0,0 +1,5 @@
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MyEvent {
#[prost(string, tag="1")]
pub name: std::string::String,
}