refactor: separate proto file from src folder

This commit is contained in:
appflowy
2022-06-15 19:40:18 +08:00
parent b4a5d007be
commit 4b71c474e4
86 changed files with 258 additions and 224 deletions

View File

@ -1,2 +1,4 @@
proto_crates = ["src/event_map.rs", "src/entities"]
proto_output_dir = "resources/proto"
protobuf_crate_path = "src/protobuf"
event_files = ["src/event_map.rs"]

View File

@ -2,7 +2,7 @@ use lib_infra::code_gen;
fn main() {
let crate_name = env!("CARGO_PKG_NAME");
code_gen::protobuf_file::gen(crate_name, "./src/protobuf/proto");
code_gen::protobuf_file::gen(crate_name);
#[cfg(feature = "dart")]
code_gen::dart_event::gen(crate_name);