refactor: generate x.proto file using build.rs

This commit is contained in:
appflowy
2022-02-09 09:57:03 +08:00
parent 32e0b5e96d
commit 7646f984e0
35 changed files with 1972 additions and 63 deletions

View File

@ -19,10 +19,10 @@ impl ProtoGen {
pub fn gen(&self) {
let crate_proto_infos = parse_crate_protobuf(self.rust_source_dirs.clone());
write_proto_files(&crate_proto_infos);
run_rust_protoc(&crate_proto_infos);
// run_rust_protoc(&crate_proto_infos);
// write_rust_crate_mod_file(&crate_proto_infos);
// write_derive_meta(&crate_proto_infos, self.derive_meta_dir.as_ref());
write_derive_meta(&crate_proto_infos, self.derive_meta_dir.as_ref());
// let flutter_package = FlutterProtobufInfo::new(self.flutter_package_lib.as_ref());
// run_flutter_protoc(&crate_proto_infos, &flutter_package);