add shared-lib folder

This commit is contained in:
appflowy 2021-11-20 10:52:39 +08:00
parent be23b4cc5a
commit 8e994a954e
217 changed files with 92 additions and 57 deletions

View File

@ -40,7 +40,6 @@ serde = { version = "1.0", features = ["derive"] }
serde_repr = "0.1" serde_repr = "0.1"
serde-aux = "1.0.1" serde-aux = "1.0.1"
derive_more = {version = "0.99"} derive_more = {version = "0.99"}
protobuf = {version = "2.20.0"} protobuf = {version = "2.20.0"}
uuid = { version = "0.8", features = ["serde", "v4"] } uuid = { version = "0.8", features = ["serde", "v4"] }
@ -60,12 +59,12 @@ pin-project = "1.0.0"
byteorder = {version = "1.3.4"} byteorder = {version = "1.3.4"}
async-stream = "0.3.2" async-stream = "0.3.2"
flowy-user-infra = { path = "../frontend/rust-lib/flowy-user-infra" } flowy-user-infra = { path = "../shared-lib/flowy-user-infra" }
flowy-workspace-infra = { path = "../frontend/rust-lib/flowy-workspace-infra" } flowy-workspace-infra = { path = "../shared-lib/flowy-workspace-infra" }
flowy-document-infra = { path = "../frontend/rust-lib/flowy-document-infra" } flowy-document-infra = { path = "../shared-lib/flowy-document-infra" }
lib-ws = { path = "../frontend/rust-lib/lib-ws" } lib-ws = { path = "../shared-lib/lib-ws" }
lib-ot = { path = "../frontend/rust-lib/lib-ot" } lib-ot = { path = "../shared-lib/lib-ot" }
backend-service = { path = "../frontend/rust-lib/backend-service", features = ["http_server"] } backend-service = { path = "../shared-lib/backend-service", features = ["http_server"] }
ormx = { version = "0.7", features = ["postgres"]} ormx = { version = "0.7", features = ["postgres"]}
[dependencies.sqlx] [dependencies.sqlx]
@ -104,8 +103,5 @@ backend = { path = ".", features = ["flowy_test"]}
flowy-sdk = { path = "../frontend/rust-lib/flowy-sdk", features = ["http_server"] } flowy-sdk = { path = "../frontend/rust-lib/flowy-sdk", features = ["http_server"] }
flowy-user = { path = "../frontend/rust-lib/flowy-user", features = ["http_server"] } flowy-user = { path = "../frontend/rust-lib/flowy-user", features = ["http_server"] }
flowy-document = { path = "../frontend/rust-lib/flowy-document", features = ["flowy_test", "http_server"] } flowy-document = { path = "../frontend/rust-lib/flowy-document", features = ["flowy_test", "http_server"] }
lib-ws = { path = "../frontend/rust-lib/lib-ws" }
flowy-test = { path = "../frontend/rust-lib/flowy-test" } flowy-test = { path = "../frontend/rust-lib/flowy-test" }
lib-infra = { path = "../frontend/rust-lib/lib-infra" }
lib-ot = { path = "../frontend/rust-lib/lib-ot" }
lib-sqlite = { path = "../frontend/rust-lib/lib-sqlite" }

View File

@ -1,25 +1,17 @@
[workspace] [workspace]
members = [ members = [
"lib-dispatch", "lib-dispatch",
"lib-log",
"lib-sqlite",
"lib-infra",
"flowy-sdk", "flowy-sdk",
"dart-ffi", "dart-ffi",
"lib-log",
"flowy-user", "flowy-user",
"flowy-user-infra",
"flowy-ast",
"flowy-derive",
"flowy-test", "flowy-test",
"lib-sqlite",
"flowy-database", "flowy-database",
"lib-infra",
"flowy-workspace", "flowy-workspace",
"flowy-workspace-infra",
"dart-notify", "dart-notify",
"flowy-document", "flowy-document",
"flowy-document-infra",
"lib-ot",
"lib-ws",
"backend-service",
] ]
exclude = ["../backend"] exclude = ["../backend"]

View File

@ -26,9 +26,10 @@ parking_lot = "0.11"
lib-dispatch = {path = "../lib-dispatch" } lib-dispatch = {path = "../lib-dispatch" }
flowy-sdk = {path = "../flowy-sdk"} flowy-sdk = {path = "../flowy-sdk"}
flowy-derive = {path = "../flowy-derive"}
dart-notify = {path = "../dart-notify" } dart-notify = {path = "../dart-notify" }
backend-service = { path = "../backend-service" }
flowy-derive = {path = "../../../shared-lib/flowy-derive" }
backend-service = { path = "../../../shared-lib/backend-service" }
[features] [features]

View File

@ -12,7 +12,7 @@ allo-isolate = {version = "^0.1", features = ["catch-unwind",]}
log = "0.4.14" log = "0.4.14"
bytes = { version = "1.0" } bytes = { version = "1.0" }
flowy-derive = {path = "../flowy-derive"} flowy-derive = {path = "../../../shared-lib/flowy-derive" }
lib-dispatch = {path = "../lib-dispatch" } lib-dispatch = {path = "../lib-dispatch" }
[features] [features]

View File

@ -7,16 +7,17 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
flowy-document-infra = { path = "../flowy-document-infra" } flowy-document-infra = { path = "../../../shared-lib/flowy-document-infra" }
flowy-derive = { path = "../../../shared-lib/flowy-derive" }
lib-ot = { path = "../../../shared-lib/lib-ot" }
lib-ws = { path = "../../../shared-lib/lib-ws" }
backend-service = { path = "../../../shared-lib/backend-service" }
derive_more = {version = "0.99", features = ["display"]} derive_more = {version = "0.99", features = ["display"]}
lib-dispatch = { path = "../lib-dispatch" } lib-dispatch = { path = "../lib-dispatch" }
flowy-derive = { path = "../flowy-derive" }
flowy-database = { path = "../flowy-database" }
lib-infra = { path = "../lib-infra" } lib-infra = { path = "../lib-infra" }
flowy-database = { path = "../flowy-database" }
dart-notify = { path = "../dart-notify" } dart-notify = { path = "../dart-notify" }
lib-ot = { path = "../lib-ot" }
lib-ws = { path = "../lib-ws" }
backend-service = { path = "../backend-service" }
diesel = {version = "1.4.8", features = ["sqlite"]} diesel = {version = "1.4.8", features = ["sqlite"]}

View File

@ -9,13 +9,10 @@ edition = "2018"
lib-dispatch = { path = "../lib-dispatch" } lib-dispatch = { path = "../lib-dispatch" }
lib-log = { path = "../lib-log" } lib-log = { path = "../lib-log" }
flowy-user = { path = "../flowy-user" } flowy-user = { path = "../flowy-user" }
lib-infra = { path = "../lib-infra" }
flowy-workspace = { path = "../flowy-workspace", default-features = false } flowy-workspace = { path = "../flowy-workspace", default-features = false }
flowy-database = { path = "../flowy-database" } flowy-database = { path = "../flowy-database" }
flowy-document = { path = "../flowy-document" } flowy-document = { path = "../flowy-document" }
flowy-document-infra = { path = "../flowy-document-infra" } lib-infra = { path = "../lib-infra" }
lib-ws = { path = "../lib-ws" }
backend-service = { path = "../backend-service" }
tracing = { version = "0.1" } tracing = { version = "0.1" }
log = "0.4.14" log = "0.4.14"
futures-core = { version = "0.3", default-features = false } futures-core = { version = "0.3", default-features = false }
@ -24,6 +21,12 @@ bytes = "1.0"
tokio = { version = "1", features = ["rt"] } tokio = { version = "1", features = ["rt"] }
parking_lot = "0.11" parking_lot = "0.11"
flowy-document-infra = { path = "../../../shared-lib/flowy-document-infra" }
lib-ws = { path = "../../../shared-lib/lib-ws" }
backend-service = { path = "../../../shared-lib/backend-service" }
[dev-dependencies] [dev-dependencies]
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
bincode = { version = "1.3"} bincode = { version = "1.3"}

View File

@ -7,13 +7,15 @@ edition = "2018"
[dependencies] [dependencies]
flowy-sdk = { path = "../flowy-sdk"} flowy-sdk = { path = "../flowy-sdk"}
lib-dispatch = { path = "../lib-dispatch" }
flowy-user = { path = "../flowy-user"} flowy-user = { path = "../flowy-user"}
flowy-workspace = { path = "../flowy-workspace", default-features = false} flowy-workspace = { path = "../flowy-workspace", default-features = false}
lib-infra = { path = "../lib-infra" }
flowy-document = { path = "../flowy-document"} flowy-document = { path = "../flowy-document"}
flowy-document-infra = { path = "../flowy-document-infra"} lib-dispatch = { path = "../lib-dispatch" }
backend-service = { path = "../backend-service" } lib-infra = { path = "../lib-infra" }
flowy-document-infra = { path = "../../../shared-lib/flowy-document-infra" }
backend-service = { path = "../../../shared-lib/backend-service" }
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
bincode = { version = "1.3"} bincode = { version = "1.3"}

View File

@ -6,16 +6,17 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
flowy-user-infra = { path = "../flowy-user-infra" } flowy-user-infra = { path = "../../../shared-lib/flowy-user-infra" }
backend-service = { path = "../backend-service" } backend-service = { path = "../../../shared-lib/backend-service" }
flowy-derive = { path = "../../../shared-lib/flowy-derive" }
lib-ws = { path = "../../../shared-lib/lib-ws" }
derive_more = {version = "0.99", features = ["display"]} derive_more = {version = "0.99", features = ["display"]}
lib-dispatch = { path = "../lib-dispatch" }
flowy-derive = { path = "../flowy-derive" }
flowy-database = { path = "../flowy-database" } flowy-database = { path = "../flowy-database" }
lib-sqlite = { path = "../lib-sqlite" }
lib-infra = { path = "../lib-infra" }
lib-ws = { path = "../lib-ws" }
dart-notify = { path = "../dart-notify" } dart-notify = { path = "../dart-notify" }
lib-dispatch = { path = "../lib-dispatch" }
lib-infra = { path = "../lib-infra" }
lib-sqlite = { path = "../lib-sqlite" }
tracing = { version = "0.1", features = ["log"] } tracing = { version = "0.1", features = ["log"] }
bytes = "1.0" bytes = "1.0"

View File

@ -6,17 +6,20 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
flowy-workspace-infra = { path = "../flowy-workspace-infra" } flowy-workspace-infra = { path = "../../../shared-lib/flowy-workspace-infra" }
flowy-document-infra = { path = "../flowy-document-infra" } flowy-document-infra = { path = "../../../shared-lib/flowy-document-infra" }
flowy-derive = { path = "../../../shared-lib/flowy-derive" }
lib-ot = { path = "../../../shared-lib/lib-ot" }
backend-service = { path = "../../../shared-lib/backend-service" }
flowy-document = { path = "../flowy-document" } flowy-document = { path = "../flowy-document" }
lib-dispatch = { path = "../lib-dispatch" }
flowy-derive = { path = "../flowy-derive" }
flowy-database = { path = "../flowy-database" } flowy-database = { path = "../flowy-database" }
lib-sqlite = { path = "../lib-sqlite" }
lib-infra = { path = "../lib-infra" }
dart-notify = { path = "../dart-notify" } dart-notify = { path = "../dart-notify" }
lib-ot = { path = "../lib-ot" } lib-dispatch = { path = "../lib-dispatch" }
backend-service = { path = "../backend-service" } lib-infra = { path = "../lib-infra" }
lib-sqlite = { path = "../lib-sqlite" }
parking_lot = "0.11" parking_lot = "0.11"
protobuf = {version = "2.18.0"} protobuf = {version = "2.18.0"}

View File

@ -10,7 +10,7 @@ uuid = { version = "0.8", features = ["serde", "v4"] }
diesel = {version = "1.4.8", features = ["sqlite"]} diesel = {version = "1.4.8", features = ["sqlite"]}
diesel_derives = {version = "1.4.1", features = ["sqlite"]} diesel_derives = {version = "1.4.1", features = ["sqlite"]}
diesel_migrations = {version = "1.4.0", features = ["sqlite"]} diesel_migrations = {version = "1.4.0", features = ["sqlite"]}
flowy-derive = { path = "../flowy-derive"} flowy-derive = { path = "../../../shared-lib/flowy-derive" }
lib-sqlite = { path = "../lib-sqlite" } lib-sqlite = { path = "../lib-sqlite" }
lazy_static = "1.4.0" lazy_static = "1.4.0"
protobuf = {version = "2.18.0"} protobuf = {version = "2.18.0"}

View File

@ -14,7 +14,7 @@ log = "0.4.11"
env_logger = "0.8.2" env_logger = "0.8.2"
#shell = { git="https://github.com/google/rust-shell.git"} #shell = { git="https://github.com/google/rust-shell.git"}
cmd_lib = "1.1" cmd_lib = "1.1"
flowy-ast = { path = "../../rust-lib/flowy-ast" } flowy-ast = { path = "../../shared-lib/flowy-ast" }
console = "0.14.0" console = "0.14.0"
fancy-regex = "0.5.0" fancy-regex = "0.5.0"
lazy_static = "1.4.0" lazy_static = "1.4.0"

14
shared-lib/Cargo.toml Normal file
View File

@ -0,0 +1,14 @@
[workspace]
members = [
"flowy-user-infra",
"flowy-workspace-infra",
"flowy-document-infra",
"lib-ot",
"lib-ws",
"backend-service",
"flowy-derive",
"flowy-ast",
]
[profile.dev]
split-debuginfo = "unpacked"

Some files were not shown because too many files have changed in this diff Show More