working 2
This commit is contained in:
@@ -1,16 +1,8 @@
|
||||
// // build.rs
|
||||
// use micropb_gen::{Generator, Config};
|
||||
|
||||
// let mut generator = Generator::new();
|
||||
// generator.use_container_heapless().configure(".example.Example", Config::new().type_attributes("#[derive(Clone)]"));
|
||||
|
||||
// generator.compile_protos(&["transport.proto"], std::env::var("OUT_DIR").unwrap() + "/example.rs").unwrap();
|
||||
|
||||
// build.rs
|
||||
use micropb_gen::{Config, Generator};
|
||||
|
||||
use micropb_gen::Generator;
|
||||
|
||||
fn main() {
|
||||
// <--- YOU MUST ADD THIS
|
||||
let mut generator = Generator::new();
|
||||
|
||||
generator.use_container_heapless();
|
||||
@@ -21,4 +13,4 @@ fn main() {
|
||||
std::env::var("OUT_DIR").unwrap() + "/nieco.rs",
|
||||
)
|
||||
.unwrap();
|
||||
} // <--- AND THIS
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user