Extract protobuf structs from flowy-sync crate (#1425)

* refactor: extract data model from flowy-sync crate

* chore: rename lib-infra features
This commit is contained in:
Nathan.fooo
2022-11-08 21:13:28 +08:00
committed by GitHub
parent 7f6ad504fd
commit 882d5535e6
85 changed files with 270 additions and 344 deletions

View File

@ -45,8 +45,11 @@ proto_gen = [
"phf",
"walkdir",
"console",
"toml"
"toml",
"cmd_lib",
"protoc-rust",
"walkdir",
"protoc-bin-vendored",
]
protobuf_file_gen = ["cmd_lib", "protoc-rust", "walkdir", "protoc-bin-vendored",]
dart_event = ["walkdir", "flowy-ast", "tera", "syn"]
dart = ["proto_gen", "dart_event"]

View File

@ -1,13 +1,13 @@
#[cfg(feature = "protobuf_file_gen")]
#[cfg(feature = "proto_gen")]
pub mod protobuf_file;
#[cfg(feature = "dart_event")]
pub mod dart_event;
#[cfg(any(feature = "protobuf_file_gen", feature = "dart_event"))]
#[cfg(any(feature = "proto_gen", feature = "dart_event"))]
mod flowy_toml;
#[cfg(any(feature = "protobuf_file_gen", feature = "dart_event"))]
#[cfg(any(feature = "proto_gen", feature = "dart_event"))]
pub mod util;
#[derive(serde::Serialize, serde::Deserialize)]