Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
[rust]: rename some crates
appflowy91c9f2c62f5c
diff --git a/backend/Cargo.toml b/backend/Cargo.tomlindex 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 filediff --git a/rust-lib/Cargo.toml b/rust-lib/Cargo.tomlindex 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.tomlindex 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 filediff --git a/rust-lib/flowy-document-infra/Cargo.toml b/rust-lib/flowy-document-infra/Cargo.tomlindex 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.tomlindex 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.tomlindex 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.tomlindex 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.tomlindex 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.tomlindex 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.tomlindex 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.tomlindex 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.tomlsimilarity index 92%rename from rust-lib/flowy-infra/Cargo.tomlrename to rust-lib/lib-infra/Cargo.tomlindex 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.tomlsimilarity index 100%rename from rust-lib/flowy-infra/Flowy.tomlrename to rust-lib/lib-infra/Flowy.tomldiff --git a/rust-lib/flowy-infra/src/future.rs b/rust-lib/lib-infra/src/future.rssimilarity index 100%rename from rust-lib/flowy-infra/src/future.rsrename to rust-lib/lib-infra/src/future.rsdiff --git a/rust-lib/flowy-infra/src/kv/kv.rs b/rust-lib/lib-infra/src/kv/kv.rssimilarity index 100%rename from rust-lib/flowy-infra/src/kv/kv.rsrename to rust-lib/lib-infra/src/kv/kv.rsdiff --git a/rust-lib/flowy-infra/src/kv/mod.rs b/rust-lib/lib-infra/src/kv/mod.rssimilarity index 100%rename from rust-lib/flowy-infra/src/kv/mod.rsrename to rust-lib/lib-infra/src/kv/mod.rsdiff --git a/rust-lib/flowy-infra/src/kv/schema.rs b/rust-lib/lib-infra/src/kv/schema.rssimilarity index 100%rename from rust-lib/flowy-infra/src/kv/schema.rsrename to rust-lib/lib-infra/src/kv/schema.rsdiff --git a/rust-lib/flowy-infra/src/lib.rs b/rust-lib/lib-infra/src/lib.rssimilarity index 100%rename from rust-lib/flowy-infra/src/lib.rsrename to rust-lib/lib-infra/src/lib.rsdiff --git a/rust-lib/flowy-infra/src/protobuf/mod.rs b/rust-lib/lib-infra/src/protobuf/mod.rssimilarity index 100%rename from rust-lib/flowy-infra/src/protobuf/mod.rsrename to rust-lib/lib-infra/src/protobuf/mod.rsdiff --git a/rust-lib/flowy-infra/src/protobuf/model/kv.rs b/rust-lib/lib-infra/src/protobuf/model/kv.rssimilarity index 100%rename from rust-lib/flowy-infra/src/protobuf/model/kv.rsrename to rust-lib/lib-infra/src/protobuf/model/kv.rsdiff --git a/rust-lib/flowy-infra/src/protobuf/model/mod.rs b/rust-lib/lib-infra/src/protobuf/model/mod.rssimilarity index 100%rename from rust-lib/flowy-infra/src/protobuf/model/mod.rsrename to rust-lib/lib-infra/src/protobuf/model/mod.rsdiff --git a/rust-lib/flowy-infra/src/protobuf/proto/kv.proto b/rust-lib/lib-infra/src/protobuf/proto/kv.protosimilarity index 100%rename from rust-lib/flowy-infra/src/protobuf/proto/kv.protorename to rust-lib/lib-infra/src/protobuf/proto/kv.protodiff --git a/rust-lib/flowy-infra/src/retry/future.rs b/rust-lib/lib-infra/src/retry/future.rssimilarity index 100%rename from rust-lib/flowy-infra/src/retry/future.rsrename to rust-lib/lib-infra/src/retry/future.rsdiff --git a/rust-lib/flowy-infra/src/retry/mod.rs b/rust-lib/lib-infra/src/retry/mod.rssimilarity index 100%rename from rust-lib/flowy-infra/src/retry/mod.rsrename to rust-lib/lib-infra/src/retry/mod.rsdiff --git a/rust-lib/flowy-infra/src/retry/strategy/exponential_backoff.rs b/rust-lib/lib-infra/src/retry/strategy/exponential_backoff.rssimilarity index 100%rename from rust-lib/flowy-infra/src/retry/strategy/exponential_backoff.rsrename to rust-lib/lib-infra/src/retry/strategy/exponential_backoff.rsdiff --git a/rust-lib/flowy-infra/src/retry/strategy/fixed_interval.rs b/rust-lib/lib-infra/src/retry/strategy/fixed_interval.rssimilarity index 100%rename from rust-lib/flowy-infra/src/retry/strategy/fixed_interval.rsrename to rust-lib/lib-infra/src/retry/strategy/fixed_interval.rsdiff --git a/rust-lib/flowy-infra/src/retry/strategy/jitter.rs b/rust-lib/lib-infra/src/retry/strategy/jitter.rssimilarity index 100%rename from rust-lib/flowy-infra/src/retry/strategy/jitter.rsrename to rust-lib/lib-infra/src/retry/strategy/jitter.rsdiff --git a/rust-lib/flowy-infra/src/retry/strategy/mod.rs b/rust-lib/lib-infra/src/retry/strategy/mod.rssimilarity index 100%rename from rust-lib/flowy-infra/src/retry/strategy/mod.rsrename to rust-lib/lib-infra/src/retry/strategy/mod.rsdiff --git a/rust-lib/flowy-ot/Cargo.toml b/rust-lib/lib-ot/Cargo.tomlsimilarity index 100%rename from rust-lib/flowy-ot/Cargo.tomlrename to rust-lib/lib-ot/Cargo.tomldiff --git a/rust-lib/flowy-ot/src/core/attributes/attribute.rs b/rust-lib/lib-ot/src/core/attributes/attribute.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/attributes/attribute.rsrename to rust-lib/lib-ot/src/core/attributes/attribute.rsdiff --git a/rust-lib/flowy-ot/src/core/attributes/attributes.rs b/rust-lib/lib-ot/src/core/attributes/attributes.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/attributes/attributes.rsrename to rust-lib/lib-ot/src/core/attributes/attributes.rsdiff --git a/rust-lib/flowy-ot/src/core/attributes/attributes_serde.rs b/rust-lib/lib-ot/src/core/attributes/attributes_serde.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/attributes/attributes_serde.rsrename to rust-lib/lib-ot/src/core/attributes/attributes_serde.rsdiff --git a/rust-lib/flowy-ot/src/core/attributes/builder.rs b/rust-lib/lib-ot/src/core/attributes/builder.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/attributes/builder.rsrename to rust-lib/lib-ot/src/core/attributes/builder.rsdiff --git a/rust-lib/flowy-ot/src/core/attributes/macros.rs b/rust-lib/lib-ot/src/core/attributes/macros.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/attributes/macros.rsrename to rust-lib/lib-ot/src/core/attributes/macros.rsdiff --git a/rust-lib/flowy-ot/src/core/attributes/mod.rs b/rust-lib/lib-ot/src/core/attributes/mod.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/attributes/mod.rsrename to rust-lib/lib-ot/src/core/attributes/mod.rsdiff --git a/rust-lib/flowy-ot/src/core/delta/builder.rs b/rust-lib/lib-ot/src/core/delta/builder.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/delta/builder.rsrename to rust-lib/lib-ot/src/core/delta/builder.rsdiff --git a/rust-lib/flowy-ot/src/core/delta/cursor.rs b/rust-lib/lib-ot/src/core/delta/cursor.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/delta/cursor.rsrename to rust-lib/lib-ot/src/core/delta/cursor.rsdiff --git a/rust-lib/flowy-ot/src/core/delta/delta.rs b/rust-lib/lib-ot/src/core/delta/delta.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/delta/delta.rsrename to rust-lib/lib-ot/src/core/delta/delta.rsdiff --git a/rust-lib/flowy-ot/src/core/delta/delta_serde.rs b/rust-lib/lib-ot/src/core/delta/delta_serde.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/delta/delta_serde.rsrename to rust-lib/lib-ot/src/core/delta/delta_serde.rsdiff --git a/rust-lib/flowy-ot/src/core/delta/iterator.rs b/rust-lib/lib-ot/src/core/delta/iterator.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/delta/iterator.rsrename to rust-lib/lib-ot/src/core/delta/iterator.rsdiff --git a/rust-lib/flowy-ot/src/core/delta/mod.rs b/rust-lib/lib-ot/src/core/delta/mod.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/delta/mod.rsrename to rust-lib/lib-ot/src/core/delta/mod.rsdiff --git a/rust-lib/flowy-ot/src/core/flowy_str.rs b/rust-lib/lib-ot/src/core/flowy_str.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/flowy_str.rsrename to rust-lib/lib-ot/src/core/flowy_str.rsdiff --git a/rust-lib/flowy-ot/src/core/interval.rs b/rust-lib/lib-ot/src/core/interval.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/interval.rsrename to rust-lib/lib-ot/src/core/interval.rsdiff --git a/rust-lib/flowy-ot/src/core/mod.rs b/rust-lib/lib-ot/src/core/mod.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/mod.rsrename to rust-lib/lib-ot/src/core/mod.rsdiff --git a/rust-lib/flowy-ot/src/core/operation/builder.rs b/rust-lib/lib-ot/src/core/operation/builder.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/operation/builder.rsrename to rust-lib/lib-ot/src/core/operation/builder.rsdiff --git a/rust-lib/flowy-ot/src/core/operation/mod.rs b/rust-lib/lib-ot/src/core/operation/mod.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/operation/mod.rsrename to rust-lib/lib-ot/src/core/operation/mod.rsdiff --git a/rust-lib/flowy-ot/src/core/operation/operation.rs b/rust-lib/lib-ot/src/core/operation/operation.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/operation/operation.rsrename to rust-lib/lib-ot/src/core/operation/operation.rsdiff --git a/rust-lib/flowy-ot/src/core/operation/operation_serde.rs b/rust-lib/lib-ot/src/core/operation/operation_serde.rssimilarity index 100%rename from rust-lib/flowy-ot/src/core/operation/operation_serde.rsrename to rust-lib/lib-ot/src/core/operation/operation_serde.rsdiff --git a/rust-lib/flowy-ot/src/errors.rs b/rust-lib/lib-ot/src/errors.rssimilarity index 100%rename from rust-lib/flowy-ot/src/errors.rsrename to rust-lib/lib-ot/src/errors.rsdiff --git a/rust-lib/flowy-ot/src/lib.rs b/rust-lib/lib-ot/src/lib.rssimilarity index 100%rename from rust-lib/flowy-ot/src/lib.rsrename to rust-lib/lib-ot/src/lib.rsdiff --git a/rust-lib/flowy-sqlite/Cargo.toml b/rust-lib/lib-sqlite/Cargo.tomlsimilarity index 100%rename from rust-lib/flowy-sqlite/Cargo.tomlrename to rust-lib/lib-sqlite/Cargo.tomldiff --git a/rust-lib/flowy-sqlite/src/conn_ext.rs b/rust-lib/lib-sqlite/src/conn_ext.rssimilarity index 100%rename from rust-lib/flowy-sqlite/src/conn_ext.rsrename to rust-lib/lib-sqlite/src/conn_ext.rsdiff --git a/rust-lib/flowy-sqlite/src/database.rs b/rust-lib/lib-sqlite/src/database.rssimilarity index 100%rename from rust-lib/flowy-sqlite/src/database.rsrename to rust-lib/lib-sqlite/src/database.rsdiff --git a/rust-lib/flowy-sqlite/src/errors.rs b/rust-lib/lib-sqlite/src/errors.rssimilarity index 100%rename from rust-lib/flowy-sqlite/src/errors.rsrename to rust-lib/lib-sqlite/src/errors.rsdiff --git a/rust-lib/flowy-sqlite/src/lib.rs b/rust-lib/lib-sqlite/src/lib.rssimilarity index 100%rename from rust-lib/flowy-sqlite/src/lib.rsrename to rust-lib/lib-sqlite/src/lib.rsdiff --git a/rust-lib/flowy-sqlite/src/pool.rs b/rust-lib/lib-sqlite/src/pool.rssimilarity index 100%rename from rust-lib/flowy-sqlite/src/pool.rsrename to rust-lib/lib-sqlite/src/pool.rsdiff --git a/rust-lib/flowy-sqlite/src/pragma.rs b/rust-lib/lib-sqlite/src/pragma.rssimilarity index 100%rename from rust-lib/flowy-sqlite/src/pragma.rsrename to rust-lib/lib-sqlite/src/pragma.rs