Skip to content

Commit 806a924

Browse files
authored
Merge pull request #1528 from AppFlowy-IO/feat/folder_node
Feat/folder node
2 parents a216121 + 9488f42 commit 806a924

File tree

111 files changed

+1922
-2369
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+1922
-2369
lines changed

frontend/rust-lib/Cargo.lock

Lines changed: 36 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/rust-lib/dart-ffi/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ http_sync = ["flowy-sdk/http_sync", "flowy-sdk/use_bunyan"]
3737
openssl_vendored = ["flowy-sdk/openssl_vendored"]
3838

3939
[build-dependencies]
40-
lib-infra = { path = "../../../shared-lib/lib-infra", features = [
40+
flowy-codegen= { path = "../../../shared-lib/flowy-codegen", features = [
4141
"dart",
42-
] }
42+
]}
43+
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use lib_infra::code_gen;
2-
31
fn main() {
4-
code_gen::protobuf_file::gen(env!("CARGO_PKG_NAME"));
2+
flowy_codegen::protobuf_file::gen(env!("CARGO_PKG_NAME"));
53
}

frontend/rust-lib/dart-notify/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ flowy-derive = {path = "../../../shared-lib/flowy-derive" }
1616
lib-dispatch = {path = "../lib-dispatch" }
1717

1818
[features]
19-
dart = ["lib-infra/dart"]
19+
dart = ["flowy-codegen/dart"]
2020

2121
[build-dependencies]
22-
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["proto_gen"] }
22+
flowy-codegen= { path = "../../../shared-lib/flowy-codegen"}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use lib_infra::code_gen;
2-
31
fn main() {
4-
code_gen::protobuf_file::gen(env!("CARGO_PKG_NAME"));
2+
flowy_codegen::protobuf_file::gen(env!("CARGO_PKG_NAME"));
53
}

frontend/rust-lib/flowy-document/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,11 @@ criterion = "0.3"
5252
rand = "0.8.5"
5353

5454
[build-dependencies]
55-
lib-infra = { path = "../../../shared-lib/lib-infra", features = [ "proto_gen"] }
55+
flowy-codegen= { path = "../../../shared-lib/flowy-codegen"}
56+
5657

5758
[features]
5859
sync = []
5960
cloud_sync = ["sync"]
6061
flowy_unit_test = ["lib-ot/flowy_unit_test", "flowy-revision/flowy_unit_test"]
61-
dart = ["lib-infra/dart"]
62+
dart = ["flowy-codegen/dart"]
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
use lib_infra::code_gen;
2-
31
fn main() {
42
let crate_name = env!("CARGO_PKG_NAME");
5-
code_gen::protobuf_file::gen(crate_name);
3+
flowy_codegen::protobuf_file::gen(crate_name);
64

75
#[cfg(feature = "dart")]
8-
code_gen::dart_event::gen(crate_name);
6+
flowy_codegen::dart_event::gen(crate_name);
97
}

frontend/rust-lib/flowy-error/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ot = ["lib-ot"]
2727
serde = ["serde_json"]
2828
http_server = ["http-flowy"]
2929
db = ["flowy-database", "lib-sqlite", "r2d2"]
30-
dart = ["flowy-error-code/dart", "lib-infra/dart"]
30+
dart = ["flowy-error-code/dart", "flowy-codegen/dart"]
3131

3232
[build-dependencies]
33-
lib-infra = { path = "../../../shared-lib/lib-infra", features = ["proto_gen"] }
33+
flowy-codegen= { path = "../../../shared-lib/flowy-codegen"}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use lib_infra::code_gen;
2-
31
fn main() {
4-
code_gen::protobuf_file::gen("flowy-error");
2+
flowy_codegen::protobuf_file::gen("flowy-error");
53
}

frontend/rust-lib/flowy-folder/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ flowy-folder = { path = "../flowy-folder", features = ["flowy_unit_test"]}
4242
flowy-test = { path = "../flowy-test" }
4343

4444
[build-dependencies]
45-
lib-infra = { path = "../../../shared-lib/lib-infra", features = [ "proto_gen"] }
45+
flowy-codegen= { path = "../../../shared-lib/flowy-codegen"}
46+
4647

4748
[features]
4849
default = []
4950
sync = []
5051
cloud_sync = ["sync"]
5152
flowy_unit_test = ["lib-ot/flowy_unit_test", "flowy-revision/flowy_unit_test"]
52-
dart = ["lib-infra/dart"]
53+
dart = ["flowy-codegen/dart"]

0 commit comments

Comments
 (0)