refactor: add code_gen crate

This commit is contained in:
appflowy
2022-02-15 21:27:00 +08:00
parent 427d2c2e25
commit 0933935071
36 changed files with 343 additions and 114 deletions

View File

@ -1,5 +1,5 @@
use lib_infra::pb;
use lib_infra::code_gen;
fn main() {
pb::gen_files(env!("CARGO_PKG_NAME"), "./src/protobuf/proto");
code_gen::protobuf_file::gen(env!("CARGO_PKG_NAME"), "./src/protobuf/proto");
}