From 91c9f2c62f5c1c4a0d9cc09f31465562ab0efb4a Mon Sep 17 00:00:00 2001 From: appflowy Date: Fri, 19 Nov 2021 12:33:14 +0800 Subject: [PATCH] [rust]: rename some crates --- backend/Cargo.toml | 8 ++++---- rust-lib/Cargo.toml | 6 +++--- rust-lib/flowy-database/Cargo.toml | 2 +- rust-lib/flowy-document-infra/Cargo.toml | 2 +- rust-lib/flowy-document/Cargo.toml | 4 ++-- rust-lib/flowy-net/Cargo.toml | 2 +- rust-lib/flowy-sdk/Cargo.toml | 2 +- rust-lib/flowy-test/Cargo.toml | 2 +- rust-lib/flowy-user/Cargo.toml | 4 ++-- rust-lib/flowy-workspace/Cargo.toml | 6 +++--- rust-lib/flowy-ws/Cargo.toml | 2 +- rust-lib/{flowy-infra => lib-infra}/Cargo.toml | 2 +- rust-lib/{flowy-infra => lib-infra}/Flowy.toml | 0 rust-lib/{flowy-infra => lib-infra}/src/future.rs | 0 rust-lib/{flowy-infra => lib-infra}/src/kv/kv.rs | 0 rust-lib/{flowy-infra => lib-infra}/src/kv/mod.rs | 0 rust-lib/{flowy-infra => lib-infra}/src/kv/schema.rs | 0 rust-lib/{flowy-infra => lib-infra}/src/lib.rs | 0 rust-lib/{flowy-infra => lib-infra}/src/protobuf/mod.rs | 0 .../{flowy-infra => lib-infra}/src/protobuf/model/kv.rs | 0 .../{flowy-infra => lib-infra}/src/protobuf/model/mod.rs | 0 .../src/protobuf/proto/kv.proto | 0 rust-lib/{flowy-infra => lib-infra}/src/retry/future.rs | 0 rust-lib/{flowy-infra => lib-infra}/src/retry/mod.rs | 0 .../src/retry/strategy/exponential_backoff.rs | 0 .../src/retry/strategy/fixed_interval.rs | 0 .../src/retry/strategy/jitter.rs | 0 .../{flowy-infra => lib-infra}/src/retry/strategy/mod.rs | 0 rust-lib/{flowy-ot => lib-ot}/Cargo.toml | 0 .../{flowy-ot => lib-ot}/src/core/attributes/attribute.rs | 0 .../src/core/attributes/attributes.rs | 0 .../src/core/attributes/attributes_serde.rs | 0 .../{flowy-ot => lib-ot}/src/core/attributes/builder.rs | 0 .../{flowy-ot => lib-ot}/src/core/attributes/macros.rs | 0 rust-lib/{flowy-ot => lib-ot}/src/core/attributes/mod.rs | 0 rust-lib/{flowy-ot => lib-ot}/src/core/delta/builder.rs | 0 rust-lib/{flowy-ot => lib-ot}/src/core/delta/cursor.rs | 0 rust-lib/{flowy-ot => lib-ot}/src/core/delta/delta.rs | 0 .../{flowy-ot => lib-ot}/src/core/delta/delta_serde.rs | 0 rust-lib/{flowy-ot => lib-ot}/src/core/delta/iterator.rs | 0 rust-lib/{flowy-ot => lib-ot}/src/core/delta/mod.rs | 0 rust-lib/{flowy-ot => lib-ot}/src/core/flowy_str.rs | 0 rust-lib/{flowy-ot => lib-ot}/src/core/interval.rs | 0 rust-lib/{flowy-ot => lib-ot}/src/core/mod.rs | 0 .../{flowy-ot => lib-ot}/src/core/operation/builder.rs | 0 rust-lib/{flowy-ot => lib-ot}/src/core/operation/mod.rs | 0 .../{flowy-ot => lib-ot}/src/core/operation/operation.rs | 0 .../src/core/operation/operation_serde.rs | 0 rust-lib/{flowy-ot => lib-ot}/src/errors.rs | 0 rust-lib/{flowy-ot => lib-ot}/src/lib.rs | 0 rust-lib/{flowy-sqlite => lib-sqlite}/Cargo.toml | 0 rust-lib/{flowy-sqlite => lib-sqlite}/src/conn_ext.rs | 0 rust-lib/{flowy-sqlite => lib-sqlite}/src/database.rs | 0 rust-lib/{flowy-sqlite => lib-sqlite}/src/errors.rs | 0 rust-lib/{flowy-sqlite => lib-sqlite}/src/lib.rs | 0 rust-lib/{flowy-sqlite => lib-sqlite}/src/pool.rs | 0 rust-lib/{flowy-sqlite => lib-sqlite}/src/pragma.rs | 0 57 files changed, 21 insertions(+), 21 deletions(-) rename rust-lib/{flowy-infra => lib-infra}/Cargo.toml (94%) rename rust-lib/{flowy-infra => lib-infra}/Flowy.toml (100%) rename rust-lib/{flowy-infra => lib-infra}/src/future.rs (100%) rename rust-lib/{flowy-infra => lib-infra}/src/kv/kv.rs (100%) rename rust-lib/{flowy-infra => lib-infra}/src/kv/mod.rs (100%) rename rust-lib/{flowy-infra => lib-infra}/src/kv/schema.rs (100%) rename rust-lib/{flowy-infra => lib-infra}/src/lib.rs (100%) rename rust-lib/{flowy-infra => lib-infra}/src/protobuf/mod.rs (100%) rename rust-lib/{flowy-infra => lib-infra}/src/protobuf/model/kv.rs (100%) rename rust-lib/{flowy-infra => lib-infra}/src/protobuf/model/mod.rs (100%) rename rust-lib/{flowy-infra => lib-infra}/src/protobuf/proto/kv.proto (100%) rename rust-lib/{flowy-infra => lib-infra}/src/retry/future.rs (100%) rename rust-lib/{flowy-infra => lib-infra}/src/retry/mod.rs (100%) rename rust-lib/{flowy-infra => lib-infra}/src/retry/strategy/exponential_backoff.rs (100%) rename rust-lib/{flowy-infra => lib-infra}/src/retry/strategy/fixed_interval.rs (100%) rename rust-lib/{flowy-infra => lib-infra}/src/retry/strategy/jitter.rs (100%) rename rust-lib/{flowy-infra => lib-infra}/src/retry/strategy/mod.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/Cargo.toml (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/attributes/attribute.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/attributes/attributes.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/attributes/attributes_serde.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/attributes/builder.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/attributes/macros.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/attributes/mod.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/delta/builder.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/delta/cursor.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/delta/delta.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/delta/delta_serde.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/delta/iterator.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/delta/mod.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/flowy_str.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/interval.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/mod.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/operation/builder.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/operation/mod.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/operation/operation.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/core/operation/operation_serde.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/errors.rs (100%) rename rust-lib/{flowy-ot => lib-ot}/src/lib.rs (100%) rename rust-lib/{flowy-sqlite => lib-sqlite}/Cargo.toml (100%) rename rust-lib/{flowy-sqlite => lib-sqlite}/src/conn_ext.rs (100%) rename rust-lib/{flowy-sqlite => lib-sqlite}/src/database.rs (100%) rename rust-lib/{flowy-sqlite => lib-sqlite}/src/errors.rs (100%) rename rust-lib/{flowy-sqlite => lib-sqlite}/src/lib.rs (100%) rename rust-lib/{flowy-sqlite => lib-sqlite}/src/pool.rs (100%) rename rust-lib/{flowy-sqlite => lib-sqlite}/src/pragma.rs (100%) diff --git a/backend/Cargo.toml b/backend/Cargo.toml index a08fbf7622..8ce75d18d7 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -64,7 +64,7 @@ flowy-user-infra = { path = "../rust-lib/flowy-user-infra" } flowy-workspace-infra = { path = "../rust-lib/flowy-workspace-infra" } flowy-document-infra = { path = "../rust-lib/flowy-document-infra" } flowy-ws = { path = "../rust-lib/flowy-ws" } -flowy-ot = { path = "../rust-lib/flowy-ot" } +flowy-ot = { path = "../rust-lib/lib-ot" } flowy-net = { path = "../rust-lib/flowy-net", features = ["http_server"] } ormx = { version = "0.7", features = ["postgres"]} @@ -106,7 +106,7 @@ flowy-document = { path = "../rust-lib/flowy-document", features = ["flowy_test" flowy-ws = { path = "../rust-lib/flowy-ws" } flowy-test = { path = "../rust-lib/flowy-test" } -flowy-infra = { path = "../rust-lib/flowy-infra" } -flowy-ot = { path = "../rust-lib/flowy-ot" } -flowy-sqlite = { path = "../rust-lib/flowy-sqlite" } +flowy-infra = { path = "../rust-lib/lib-infra" } +flowy-ot = { path = "../rust-lib/lib-ot" } +flowy-sqlite = { path = "../rust-lib/lib-sqlite" } futures-util = "0.3.15" \ No newline at end of file diff --git a/rust-lib/Cargo.toml b/rust-lib/Cargo.toml index 95e6511e74..7d6790abd3 100644 --- a/rust-lib/Cargo.toml +++ b/rust-lib/Cargo.toml @@ -9,15 +9,15 @@ members = [ "flowy-ast", "flowy-derive", "flowy-test", - "flowy-sqlite", + "lib-sqlite", "flowy-database", - "flowy-infra", + "lib-infra", "flowy-workspace", "flowy-workspace-infra", "flowy-dart-notify", "flowy-document", "flowy-document-infra", - "flowy-ot", + "lib-ot", "flowy-net", "flowy-ws", "flowy-backend-api", diff --git a/rust-lib/flowy-database/Cargo.toml b/rust-lib/flowy-database/Cargo.toml index 593c673e89..0bcfaef842 100644 --- a/rust-lib/flowy-database/Cargo.toml +++ b/rust-lib/flowy-database/Cargo.toml @@ -9,4 +9,4 @@ edition = "2018" diesel = {version = "1.4.8", features = ["sqlite"]} diesel_derives = {version = "1.4.1", features = ["sqlite"]} diesel_migrations = {version = "1.4.0", features = ["sqlite"]} -flowy-sqlite = {path = "../flowy-sqlite" } \ No newline at end of file +flowy-sqlite = {path = "../lib-sqlite" } \ No newline at end of file diff --git a/rust-lib/flowy-document-infra/Cargo.toml b/rust-lib/flowy-document-infra/Cargo.toml index 3b232a56cc..3fd0a9f5db 100644 --- a/rust-lib/flowy-document-infra/Cargo.toml +++ b/rust-lib/flowy-document-infra/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -flowy-ot = { path = "../flowy-ot" } +flowy-ot = { path = "../lib-ot" } flowy-derive = { path = "../flowy-derive" } protobuf = {version = "2.18.0"} bytes = "1.0" diff --git a/rust-lib/flowy-document/Cargo.toml b/rust-lib/flowy-document/Cargo.toml index a58dcb9b45..f2f2302bd2 100644 --- a/rust-lib/flowy-document/Cargo.toml +++ b/rust-lib/flowy-document/Cargo.toml @@ -12,9 +12,9 @@ derive_more = {version = "0.99", features = ["display"]} flowy-dispatch = { path = "../flowy-dispatch" } flowy-derive = { path = "../flowy-derive" } flowy-database = { path = "../flowy-database" } -flowy-infra = { path = "../flowy-infra" } +flowy-infra = { path = "../lib-infra" } flowy-dart-notify = { path = "../flowy-dart-notify" } -flowy-ot = { path = "../flowy-ot" } +flowy-ot = { path = "../lib-ot" } flowy-ws = { path = "../flowy-ws" } flowy-net = { path = "../flowy-net", features = ["flowy_request"] } diff --git a/rust-lib/flowy-net/Cargo.toml b/rust-lib/flowy-net/Cargo.toml index 00f37241f1..6de7bfe2b9 100644 --- a/rust-lib/flowy-net/Cargo.toml +++ b/rust-lib/flowy-net/Cargo.toml @@ -22,7 +22,7 @@ tokio = { version = "1", features = ["full"] } actix-web = {version = "4.0.0-beta.8", optional = true} derive_more = {version = "0.99", features = ["display"]} flowy-derive = { path = "../flowy-derive" } -flowy-infra = { path = "../flowy-infra"} +flowy-infra = { path = "../lib-infra" } anyhow = "1.0" thiserror = "1.0.24" uuid = { version = "0.8", features = ["v4"] } diff --git a/rust-lib/flowy-sdk/Cargo.toml b/rust-lib/flowy-sdk/Cargo.toml index 27b7520fd7..b114030b10 100644 --- a/rust-lib/flowy-sdk/Cargo.toml +++ b/rust-lib/flowy-sdk/Cargo.toml @@ -9,7 +9,7 @@ edition = "2018" flowy-dispatch = { path = "../flowy-dispatch"} flowy-log = { path = "../flowy-log" } flowy-user = { path = "../flowy-user" } -flowy-infra = { path = "../flowy-infra" } +flowy-infra = { path = "../lib-infra" } flowy-workspace = { path = "../flowy-workspace", default-features = false } flowy-database = { path = "../flowy-database" } flowy-document = { path = "../flowy-document" } diff --git a/rust-lib/flowy-test/Cargo.toml b/rust-lib/flowy-test/Cargo.toml index ed8b589fbd..0b2ab8d9f3 100644 --- a/rust-lib/flowy-test/Cargo.toml +++ b/rust-lib/flowy-test/Cargo.toml @@ -10,7 +10,7 @@ flowy-sdk = { path = "../flowy-sdk"} flowy-dispatch = { path = "../flowy-dispatch"} flowy-user = { path = "../flowy-user"} flowy-workspace = { path = "../flowy-workspace", default-features = false} -flowy-infra = { path = "../flowy-infra"} +flowy-infra = { path = "../lib-infra" } flowy-document = { path = "../flowy-document"} flowy-document-infra = { path = "../flowy-document-infra"} flowy-net = { path = "../flowy-net"} diff --git a/rust-lib/flowy-user/Cargo.toml b/rust-lib/flowy-user/Cargo.toml index c2117dc889..78deec6c21 100644 --- a/rust-lib/flowy-user/Cargo.toml +++ b/rust-lib/flowy-user/Cargo.toml @@ -12,8 +12,8 @@ derive_more = {version = "0.99", features = ["display"]} flowy-dispatch = { path = "../flowy-dispatch" } flowy-derive = { path = "../flowy-derive" } flowy-database = { path = "../flowy-database" } -flowy-sqlite = { path = "../flowy-sqlite" } -flowy-infra = { path = "../flowy-infra" } +flowy-sqlite = { path = "../lib-sqlite" } +flowy-infra = { path = "../lib-infra" } flowy-net = { path = "../flowy-net", features = ["flowy_request"] } flowy-ws = { path = "../flowy-ws"} flowy-dart-notify = { path = "../flowy-dart-notify" } diff --git a/rust-lib/flowy-workspace/Cargo.toml b/rust-lib/flowy-workspace/Cargo.toml index eb56abe216..2eaa1c59b0 100644 --- a/rust-lib/flowy-workspace/Cargo.toml +++ b/rust-lib/flowy-workspace/Cargo.toml @@ -12,10 +12,10 @@ flowy-document = { path = "../flowy-document" } flowy-dispatch = { path = "../flowy-dispatch" } flowy-derive = { path = "../flowy-derive" } flowy-database = { path = "../flowy-database" } -flowy-sqlite = { path = "../flowy-sqlite" } -flowy-infra = { path = "../flowy-infra" } +flowy-sqlite = { path = "../lib-sqlite" } +flowy-infra = { path = "../lib-infra" } flowy-dart-notify = { path = "../flowy-dart-notify" } -flowy-ot = { path = "../flowy-ot" } +flowy-ot = { path = "../lib-ot" } flowy-net = { path = "../flowy-net", features = ["flowy_request"] } flowy-backend-api = { path = "../flowy-backend-api"} diff --git a/rust-lib/flowy-ws/Cargo.toml b/rust-lib/flowy-ws/Cargo.toml index 74e89f66df..695495fe98 100644 --- a/rust-lib/flowy-ws/Cargo.toml +++ b/rust-lib/flowy-ws/Cargo.toml @@ -8,7 +8,7 @@ edition = "2018" [dependencies] flowy-derive = { path = "../flowy-derive" } flowy-net = { path = "../flowy-net" } -flowy-infra = { path = "../flowy-infra" } +flowy-infra = { path = "../lib-infra" } tokio-tungstenite = "0.15" futures-util = "0.3.17" diff --git a/rust-lib/flowy-infra/Cargo.toml b/rust-lib/lib-infra/Cargo.toml similarity index 94% rename from rust-lib/flowy-infra/Cargo.toml rename to rust-lib/lib-infra/Cargo.toml index 6115a8f034..f9db9d6994 100644 --- a/rust-lib/flowy-infra/Cargo.toml +++ b/rust-lib/lib-infra/Cargo.toml @@ -11,7 +11,7 @@ diesel = {version = "1.4.8", features = ["sqlite"]} diesel_derives = {version = "1.4.1", features = ["sqlite"]} diesel_migrations = {version = "1.4.0", features = ["sqlite"]} flowy-derive = { path = "../flowy-derive"} -flowy-sqlite = { path = "../flowy-sqlite"} +flowy-sqlite = { path = "../lib-sqlite" } lazy_static = "1.4.0" protobuf = {version = "2.18.0"} log = "0.4.14" diff --git a/rust-lib/flowy-infra/Flowy.toml b/rust-lib/lib-infra/Flowy.toml similarity index 100% rename from rust-lib/flowy-infra/Flowy.toml rename to rust-lib/lib-infra/Flowy.toml diff --git a/rust-lib/flowy-infra/src/future.rs b/rust-lib/lib-infra/src/future.rs similarity index 100% rename from rust-lib/flowy-infra/src/future.rs rename to rust-lib/lib-infra/src/future.rs diff --git a/rust-lib/flowy-infra/src/kv/kv.rs b/rust-lib/lib-infra/src/kv/kv.rs similarity index 100% rename from rust-lib/flowy-infra/src/kv/kv.rs rename to rust-lib/lib-infra/src/kv/kv.rs diff --git a/rust-lib/flowy-infra/src/kv/mod.rs b/rust-lib/lib-infra/src/kv/mod.rs similarity index 100% rename from rust-lib/flowy-infra/src/kv/mod.rs rename to rust-lib/lib-infra/src/kv/mod.rs diff --git a/rust-lib/flowy-infra/src/kv/schema.rs b/rust-lib/lib-infra/src/kv/schema.rs similarity index 100% rename from rust-lib/flowy-infra/src/kv/schema.rs rename to rust-lib/lib-infra/src/kv/schema.rs diff --git a/rust-lib/flowy-infra/src/lib.rs b/rust-lib/lib-infra/src/lib.rs similarity index 100% rename from rust-lib/flowy-infra/src/lib.rs rename to rust-lib/lib-infra/src/lib.rs diff --git a/rust-lib/flowy-infra/src/protobuf/mod.rs b/rust-lib/lib-infra/src/protobuf/mod.rs similarity index 100% rename from rust-lib/flowy-infra/src/protobuf/mod.rs rename to rust-lib/lib-infra/src/protobuf/mod.rs diff --git a/rust-lib/flowy-infra/src/protobuf/model/kv.rs b/rust-lib/lib-infra/src/protobuf/model/kv.rs similarity index 100% rename from rust-lib/flowy-infra/src/protobuf/model/kv.rs rename to rust-lib/lib-infra/src/protobuf/model/kv.rs diff --git a/rust-lib/flowy-infra/src/protobuf/model/mod.rs b/rust-lib/lib-infra/src/protobuf/model/mod.rs similarity index 100% rename from rust-lib/flowy-infra/src/protobuf/model/mod.rs rename to rust-lib/lib-infra/src/protobuf/model/mod.rs diff --git a/rust-lib/flowy-infra/src/protobuf/proto/kv.proto b/rust-lib/lib-infra/src/protobuf/proto/kv.proto similarity index 100% rename from rust-lib/flowy-infra/src/protobuf/proto/kv.proto rename to rust-lib/lib-infra/src/protobuf/proto/kv.proto diff --git a/rust-lib/flowy-infra/src/retry/future.rs b/rust-lib/lib-infra/src/retry/future.rs similarity index 100% rename from rust-lib/flowy-infra/src/retry/future.rs rename to rust-lib/lib-infra/src/retry/future.rs diff --git a/rust-lib/flowy-infra/src/retry/mod.rs b/rust-lib/lib-infra/src/retry/mod.rs similarity index 100% rename from rust-lib/flowy-infra/src/retry/mod.rs rename to rust-lib/lib-infra/src/retry/mod.rs diff --git a/rust-lib/flowy-infra/src/retry/strategy/exponential_backoff.rs b/rust-lib/lib-infra/src/retry/strategy/exponential_backoff.rs similarity index 100% rename from rust-lib/flowy-infra/src/retry/strategy/exponential_backoff.rs rename to rust-lib/lib-infra/src/retry/strategy/exponential_backoff.rs diff --git a/rust-lib/flowy-infra/src/retry/strategy/fixed_interval.rs b/rust-lib/lib-infra/src/retry/strategy/fixed_interval.rs similarity index 100% rename from rust-lib/flowy-infra/src/retry/strategy/fixed_interval.rs rename to rust-lib/lib-infra/src/retry/strategy/fixed_interval.rs diff --git a/rust-lib/flowy-infra/src/retry/strategy/jitter.rs b/rust-lib/lib-infra/src/retry/strategy/jitter.rs similarity index 100% rename from rust-lib/flowy-infra/src/retry/strategy/jitter.rs rename to rust-lib/lib-infra/src/retry/strategy/jitter.rs diff --git a/rust-lib/flowy-infra/src/retry/strategy/mod.rs b/rust-lib/lib-infra/src/retry/strategy/mod.rs similarity index 100% rename from rust-lib/flowy-infra/src/retry/strategy/mod.rs rename to rust-lib/lib-infra/src/retry/strategy/mod.rs diff --git a/rust-lib/flowy-ot/Cargo.toml b/rust-lib/lib-ot/Cargo.toml similarity index 100% rename from rust-lib/flowy-ot/Cargo.toml rename to rust-lib/lib-ot/Cargo.toml diff --git a/rust-lib/flowy-ot/src/core/attributes/attribute.rs b/rust-lib/lib-ot/src/core/attributes/attribute.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/attributes/attribute.rs rename to rust-lib/lib-ot/src/core/attributes/attribute.rs diff --git a/rust-lib/flowy-ot/src/core/attributes/attributes.rs b/rust-lib/lib-ot/src/core/attributes/attributes.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/attributes/attributes.rs rename to rust-lib/lib-ot/src/core/attributes/attributes.rs diff --git a/rust-lib/flowy-ot/src/core/attributes/attributes_serde.rs b/rust-lib/lib-ot/src/core/attributes/attributes_serde.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/attributes/attributes_serde.rs rename to rust-lib/lib-ot/src/core/attributes/attributes_serde.rs diff --git a/rust-lib/flowy-ot/src/core/attributes/builder.rs b/rust-lib/lib-ot/src/core/attributes/builder.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/attributes/builder.rs rename to rust-lib/lib-ot/src/core/attributes/builder.rs diff --git a/rust-lib/flowy-ot/src/core/attributes/macros.rs b/rust-lib/lib-ot/src/core/attributes/macros.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/attributes/macros.rs rename to rust-lib/lib-ot/src/core/attributes/macros.rs diff --git a/rust-lib/flowy-ot/src/core/attributes/mod.rs b/rust-lib/lib-ot/src/core/attributes/mod.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/attributes/mod.rs rename to rust-lib/lib-ot/src/core/attributes/mod.rs diff --git a/rust-lib/flowy-ot/src/core/delta/builder.rs b/rust-lib/lib-ot/src/core/delta/builder.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/delta/builder.rs rename to rust-lib/lib-ot/src/core/delta/builder.rs diff --git a/rust-lib/flowy-ot/src/core/delta/cursor.rs b/rust-lib/lib-ot/src/core/delta/cursor.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/delta/cursor.rs rename to rust-lib/lib-ot/src/core/delta/cursor.rs diff --git a/rust-lib/flowy-ot/src/core/delta/delta.rs b/rust-lib/lib-ot/src/core/delta/delta.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/delta/delta.rs rename to rust-lib/lib-ot/src/core/delta/delta.rs diff --git a/rust-lib/flowy-ot/src/core/delta/delta_serde.rs b/rust-lib/lib-ot/src/core/delta/delta_serde.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/delta/delta_serde.rs rename to rust-lib/lib-ot/src/core/delta/delta_serde.rs diff --git a/rust-lib/flowy-ot/src/core/delta/iterator.rs b/rust-lib/lib-ot/src/core/delta/iterator.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/delta/iterator.rs rename to rust-lib/lib-ot/src/core/delta/iterator.rs diff --git a/rust-lib/flowy-ot/src/core/delta/mod.rs b/rust-lib/lib-ot/src/core/delta/mod.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/delta/mod.rs rename to rust-lib/lib-ot/src/core/delta/mod.rs diff --git a/rust-lib/flowy-ot/src/core/flowy_str.rs b/rust-lib/lib-ot/src/core/flowy_str.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/flowy_str.rs rename to rust-lib/lib-ot/src/core/flowy_str.rs diff --git a/rust-lib/flowy-ot/src/core/interval.rs b/rust-lib/lib-ot/src/core/interval.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/interval.rs rename to rust-lib/lib-ot/src/core/interval.rs diff --git a/rust-lib/flowy-ot/src/core/mod.rs b/rust-lib/lib-ot/src/core/mod.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/mod.rs rename to rust-lib/lib-ot/src/core/mod.rs diff --git a/rust-lib/flowy-ot/src/core/operation/builder.rs b/rust-lib/lib-ot/src/core/operation/builder.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/operation/builder.rs rename to rust-lib/lib-ot/src/core/operation/builder.rs diff --git a/rust-lib/flowy-ot/src/core/operation/mod.rs b/rust-lib/lib-ot/src/core/operation/mod.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/operation/mod.rs rename to rust-lib/lib-ot/src/core/operation/mod.rs diff --git a/rust-lib/flowy-ot/src/core/operation/operation.rs b/rust-lib/lib-ot/src/core/operation/operation.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/operation/operation.rs rename to rust-lib/lib-ot/src/core/operation/operation.rs diff --git a/rust-lib/flowy-ot/src/core/operation/operation_serde.rs b/rust-lib/lib-ot/src/core/operation/operation_serde.rs similarity index 100% rename from rust-lib/flowy-ot/src/core/operation/operation_serde.rs rename to rust-lib/lib-ot/src/core/operation/operation_serde.rs diff --git a/rust-lib/flowy-ot/src/errors.rs b/rust-lib/lib-ot/src/errors.rs similarity index 100% rename from rust-lib/flowy-ot/src/errors.rs rename to rust-lib/lib-ot/src/errors.rs diff --git a/rust-lib/flowy-ot/src/lib.rs b/rust-lib/lib-ot/src/lib.rs similarity index 100% rename from rust-lib/flowy-ot/src/lib.rs rename to rust-lib/lib-ot/src/lib.rs diff --git a/rust-lib/flowy-sqlite/Cargo.toml b/rust-lib/lib-sqlite/Cargo.toml similarity index 100% rename from rust-lib/flowy-sqlite/Cargo.toml rename to rust-lib/lib-sqlite/Cargo.toml diff --git a/rust-lib/flowy-sqlite/src/conn_ext.rs b/rust-lib/lib-sqlite/src/conn_ext.rs similarity index 100% rename from rust-lib/flowy-sqlite/src/conn_ext.rs rename to rust-lib/lib-sqlite/src/conn_ext.rs diff --git a/rust-lib/flowy-sqlite/src/database.rs b/rust-lib/lib-sqlite/src/database.rs similarity index 100% rename from rust-lib/flowy-sqlite/src/database.rs rename to rust-lib/lib-sqlite/src/database.rs diff --git a/rust-lib/flowy-sqlite/src/errors.rs b/rust-lib/lib-sqlite/src/errors.rs similarity index 100% rename from rust-lib/flowy-sqlite/src/errors.rs rename to rust-lib/lib-sqlite/src/errors.rs diff --git a/rust-lib/flowy-sqlite/src/lib.rs b/rust-lib/lib-sqlite/src/lib.rs similarity index 100% rename from rust-lib/flowy-sqlite/src/lib.rs rename to rust-lib/lib-sqlite/src/lib.rs diff --git a/rust-lib/flowy-sqlite/src/pool.rs b/rust-lib/lib-sqlite/src/pool.rs similarity index 100% rename from rust-lib/flowy-sqlite/src/pool.rs rename to rust-lib/lib-sqlite/src/pool.rs diff --git a/rust-lib/flowy-sqlite/src/pragma.rs b/rust-lib/lib-sqlite/src/pragma.rs similarity index 100% rename from rust-lib/flowy-sqlite/src/pragma.rs rename to rust-lib/lib-sqlite/src/pragma.rs