chore: provider default for FlowyConfig propertis

This commit is contained in:
appflowy 2022-06-17 11:27:00 +08:00
parent 16e1387a8e
commit ed138abcc3
15 changed files with 17 additions and 46 deletions

View File

@ -1,4 +1,2 @@
# Check out the FlowyConfig (located in flowy_toml.rs) for more details.
proto_input = ["src/model"]
#proto_output = "resources/proto"
#protobuf_crate_path = "src/protobuf"
event_files = []

View File

@ -1,5 +1,2 @@
# Check out the FlowyConfig (located in flowy_toml.rs) for more details.
proto_input = ["src/entities"]
proto_output = "resources/proto"
protobuf_crate_path = "src/protobuf"
event_files = []

View File

@ -1,5 +1,3 @@
# Check out the FlowyConfig (located in flowy_toml.rs) for more details.
proto_input = ["src/errors.rs",]
proto_output = "resources/proto"
protobuf_crate_path = "src/protobuf"
event_files = []

View File

@ -1,5 +1,3 @@
# Check out the FlowyConfig (located in flowy_toml.rs) for more details.
proto_input = ["src/entities", "src/event_map.rs", "src/dart_notification.rs"]
proto_output = "resources/proto"
protobuf_crate_path = "src/protobuf"
event_files = ["src/event_map.rs"]

View File

@ -1,9 +1,8 @@
# Check out the FlowyConfig (located in flowy_toml.rs) for more details.
proto_input = [
"src/event_map.rs",
"src/services/field/type_options",
"src/entities",
"src/dart_notification.rs"
]
proto_output = "resources/proto"
protobuf_crate_path = "src/protobuf"
event_files = ["src/event_map.rs"]

View File

@ -1,4 +1,3 @@
# Check out the FlowyConfig (located in flowy_toml.rs) for more details.
proto_input = ["src/event_map.rs", "src/entities"]
proto_output = "resources/proto"
protobuf_crate_path = "src/protobuf"
event_files = ["src/event_map.rs"]

View File

@ -1,5 +1,3 @@
# Check out the FlowyConfig (located in flowy_toml.rs) for more details.
proto_input = ["src/event_map.rs", "src/entities.rs"]
proto_output = "resources/proto"
protobuf_crate_path = "src/protobuf"
event_files = ["src/event_map.rs"]

View File

@ -1,5 +1,3 @@
# Check out the FlowyConfig (located in flowy_toml.rs) for more details.
proto_input = ["src/event_map.rs", "src/dart_notification.rs"]
proto_output = "resources/proto"
protobuf_crate_path = "src/protobuf"
event_files = ["src/event_map.rs"]

View File

@ -1,5 +1,2 @@
# Check out the FlowyConfig (located in flowy_toml.rs) for more details.
proto_input = ["src/code.rs"]
proto_output = "resources/proto"
protobuf_crate_path = "src/protobuf"
event_files = []

View File

@ -1,5 +1,2 @@
# Check out the FlowyConfig (located in flowy_toml.rs) for more details.
proto_input = ["src/entities",]
proto_output = "resources/proto"
protobuf_crate_path = "src/protobuf"
event_files = []

View File

@ -1,5 +1,2 @@
# Check out the FlowyConfig (located in flowy_toml.rs) for more details.
proto_input = ["src/entities/",]
proto_output = "resources/proto"
protobuf_crate_path = "src/protobuf"
event_files = []

View File

@ -1,5 +1,2 @@
# Check out the FlowyConfig (located in flowy_toml.rs) for more details.
proto_input = ["src/entities"]
proto_output = "resources/proto"
protobuf_crate_path = "src/protobuf"
event_files = []

View File

@ -1,5 +1,2 @@
# Check out the FlowyConfig (located in flowy_toml.rs) for more details.
proto_input = ["src/entities", "src/errors.rs"]
proto_output = "resources/proto"
protobuf_crate_path = "src/protobuf"
event_files = []

View File

@ -3,8 +3,11 @@ use std::path::{Path, PathBuf};
#[derive(serde::Deserialize, Clone, Debug)]
pub struct FlowyConfig {
#[serde(default)]
pub event_files: Vec<String>,
// Collect AST from the file or directory specified by proto_input to generate the proto files.
#[serde(default)]
pub proto_input: Vec<String>,
// Output path for the generated proto files. The default value is default_proto_output()

View File

@ -1,4 +1,2 @@
# Check out the FlowyConfig (located in flowy_toml.rs) for more details.
proto_input = ["src/errors.rs", "src/msg.rs"]
proto_output = "resources/proto"
protobuf_crate_path = "src/protobuf"
event_files = []