Jelajahi Sumber

[rust]: rename some crates

appflowy 3 tahun lalu
induk
melakukan
91c9f2c62f
57 mengubah file dengan 21 tambahan dan 21 penghapusan
  1. 4 4
      backend/Cargo.toml
  2. 3 3
      rust-lib/Cargo.toml
  3. 1 1
      rust-lib/flowy-database/Cargo.toml
  4. 1 1
      rust-lib/flowy-document-infra/Cargo.toml
  5. 2 2
      rust-lib/flowy-document/Cargo.toml
  6. 1 1
      rust-lib/flowy-net/Cargo.toml
  7. 1 1
      rust-lib/flowy-sdk/Cargo.toml
  8. 1 1
      rust-lib/flowy-test/Cargo.toml
  9. 2 2
      rust-lib/flowy-user/Cargo.toml
  10. 3 3
      rust-lib/flowy-workspace/Cargo.toml
  11. 1 1
      rust-lib/flowy-ws/Cargo.toml
  12. 1 1
      rust-lib/lib-infra/Cargo.toml
  13. 0 0
      rust-lib/lib-infra/Flowy.toml
  14. 0 0
      rust-lib/lib-infra/src/future.rs
  15. 0 0
      rust-lib/lib-infra/src/kv/kv.rs
  16. 0 0
      rust-lib/lib-infra/src/kv/mod.rs
  17. 0 0
      rust-lib/lib-infra/src/kv/schema.rs
  18. 0 0
      rust-lib/lib-infra/src/lib.rs
  19. 0 0
      rust-lib/lib-infra/src/protobuf/mod.rs
  20. 0 0
      rust-lib/lib-infra/src/protobuf/model/kv.rs
  21. 0 0
      rust-lib/lib-infra/src/protobuf/model/mod.rs
  22. 0 0
      rust-lib/lib-infra/src/protobuf/proto/kv.proto
  23. 0 0
      rust-lib/lib-infra/src/retry/future.rs
  24. 0 0
      rust-lib/lib-infra/src/retry/mod.rs
  25. 0 0
      rust-lib/lib-infra/src/retry/strategy/exponential_backoff.rs
  26. 0 0
      rust-lib/lib-infra/src/retry/strategy/fixed_interval.rs
  27. 0 0
      rust-lib/lib-infra/src/retry/strategy/jitter.rs
  28. 0 0
      rust-lib/lib-infra/src/retry/strategy/mod.rs
  29. 0 0
      rust-lib/lib-ot/Cargo.toml
  30. 0 0
      rust-lib/lib-ot/src/core/attributes/attribute.rs
  31. 0 0
      rust-lib/lib-ot/src/core/attributes/attributes.rs
  32. 0 0
      rust-lib/lib-ot/src/core/attributes/attributes_serde.rs
  33. 0 0
      rust-lib/lib-ot/src/core/attributes/builder.rs
  34. 0 0
      rust-lib/lib-ot/src/core/attributes/macros.rs
  35. 0 0
      rust-lib/lib-ot/src/core/attributes/mod.rs
  36. 0 0
      rust-lib/lib-ot/src/core/delta/builder.rs
  37. 0 0
      rust-lib/lib-ot/src/core/delta/cursor.rs
  38. 0 0
      rust-lib/lib-ot/src/core/delta/delta.rs
  39. 0 0
      rust-lib/lib-ot/src/core/delta/delta_serde.rs
  40. 0 0
      rust-lib/lib-ot/src/core/delta/iterator.rs
  41. 0 0
      rust-lib/lib-ot/src/core/delta/mod.rs
  42. 0 0
      rust-lib/lib-ot/src/core/flowy_str.rs
  43. 0 0
      rust-lib/lib-ot/src/core/interval.rs
  44. 0 0
      rust-lib/lib-ot/src/core/mod.rs
  45. 0 0
      rust-lib/lib-ot/src/core/operation/builder.rs
  46. 0 0
      rust-lib/lib-ot/src/core/operation/mod.rs
  47. 0 0
      rust-lib/lib-ot/src/core/operation/operation.rs
  48. 0 0
      rust-lib/lib-ot/src/core/operation/operation_serde.rs
  49. 0 0
      rust-lib/lib-ot/src/errors.rs
  50. 0 0
      rust-lib/lib-ot/src/lib.rs
  51. 0 0
      rust-lib/lib-sqlite/Cargo.toml
  52. 0 0
      rust-lib/lib-sqlite/src/conn_ext.rs
  53. 0 0
      rust-lib/lib-sqlite/src/database.rs
  54. 0 0
      rust-lib/lib-sqlite/src/errors.rs
  55. 0 0
      rust-lib/lib-sqlite/src/lib.rs
  56. 0 0
      rust-lib/lib-sqlite/src/pool.rs
  57. 0 0
      rust-lib/lib-sqlite/src/pragma.rs

+ 4 - 4
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"

+ 3 - 3
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",

+ 1 - 1
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" }
+flowy-sqlite = {path = "../lib-sqlite" }

+ 1 - 1
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"

+ 2 - 2
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"] }
 

+ 1 - 1
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"] }

+ 1 - 1
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" }

+ 1 - 1
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"}

+ 2 - 2
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" }

+ 3 - 3
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"}
 

+ 1 - 1
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"

+ 1 - 1
rust-lib/flowy-infra/Cargo.toml → 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"

+ 0 - 0
rust-lib/flowy-infra/Flowy.toml → rust-lib/lib-infra/Flowy.toml


+ 0 - 0
rust-lib/flowy-infra/src/future.rs → rust-lib/lib-infra/src/future.rs


+ 0 - 0
rust-lib/flowy-infra/src/kv/kv.rs → rust-lib/lib-infra/src/kv/kv.rs


+ 0 - 0
rust-lib/flowy-infra/src/kv/mod.rs → rust-lib/lib-infra/src/kv/mod.rs


+ 0 - 0
rust-lib/flowy-infra/src/kv/schema.rs → rust-lib/lib-infra/src/kv/schema.rs


+ 0 - 0
rust-lib/flowy-infra/src/lib.rs → rust-lib/lib-infra/src/lib.rs


+ 0 - 0
rust-lib/flowy-infra/src/protobuf/mod.rs → rust-lib/lib-infra/src/protobuf/mod.rs


+ 0 - 0
rust-lib/flowy-infra/src/protobuf/model/kv.rs → rust-lib/lib-infra/src/protobuf/model/kv.rs


+ 0 - 0
rust-lib/flowy-infra/src/protobuf/model/mod.rs → rust-lib/lib-infra/src/protobuf/model/mod.rs


+ 0 - 0
rust-lib/flowy-infra/src/protobuf/proto/kv.proto → rust-lib/lib-infra/src/protobuf/proto/kv.proto


+ 0 - 0
rust-lib/flowy-infra/src/retry/future.rs → rust-lib/lib-infra/src/retry/future.rs


+ 0 - 0
rust-lib/flowy-infra/src/retry/mod.rs → rust-lib/lib-infra/src/retry/mod.rs


+ 0 - 0
rust-lib/flowy-infra/src/retry/strategy/exponential_backoff.rs → rust-lib/lib-infra/src/retry/strategy/exponential_backoff.rs


+ 0 - 0
rust-lib/flowy-infra/src/retry/strategy/fixed_interval.rs → rust-lib/lib-infra/src/retry/strategy/fixed_interval.rs


+ 0 - 0
rust-lib/flowy-infra/src/retry/strategy/jitter.rs → rust-lib/lib-infra/src/retry/strategy/jitter.rs


+ 0 - 0
rust-lib/flowy-infra/src/retry/strategy/mod.rs → rust-lib/lib-infra/src/retry/strategy/mod.rs


+ 0 - 0
rust-lib/flowy-ot/Cargo.toml → rust-lib/lib-ot/Cargo.toml


+ 0 - 0
rust-lib/flowy-ot/src/core/attributes/attribute.rs → rust-lib/lib-ot/src/core/attributes/attribute.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/attributes/attributes.rs → rust-lib/lib-ot/src/core/attributes/attributes.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/attributes/attributes_serde.rs → rust-lib/lib-ot/src/core/attributes/attributes_serde.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/attributes/builder.rs → rust-lib/lib-ot/src/core/attributes/builder.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/attributes/macros.rs → rust-lib/lib-ot/src/core/attributes/macros.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/attributes/mod.rs → rust-lib/lib-ot/src/core/attributes/mod.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/delta/builder.rs → rust-lib/lib-ot/src/core/delta/builder.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/delta/cursor.rs → rust-lib/lib-ot/src/core/delta/cursor.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/delta/delta.rs → rust-lib/lib-ot/src/core/delta/delta.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/delta/delta_serde.rs → rust-lib/lib-ot/src/core/delta/delta_serde.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/delta/iterator.rs → rust-lib/lib-ot/src/core/delta/iterator.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/delta/mod.rs → rust-lib/lib-ot/src/core/delta/mod.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/flowy_str.rs → rust-lib/lib-ot/src/core/flowy_str.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/interval.rs → rust-lib/lib-ot/src/core/interval.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/mod.rs → rust-lib/lib-ot/src/core/mod.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/operation/builder.rs → rust-lib/lib-ot/src/core/operation/builder.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/operation/mod.rs → rust-lib/lib-ot/src/core/operation/mod.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/operation/operation.rs → rust-lib/lib-ot/src/core/operation/operation.rs


+ 0 - 0
rust-lib/flowy-ot/src/core/operation/operation_serde.rs → rust-lib/lib-ot/src/core/operation/operation_serde.rs


+ 0 - 0
rust-lib/flowy-ot/src/errors.rs → rust-lib/lib-ot/src/errors.rs


+ 0 - 0
rust-lib/flowy-ot/src/lib.rs → rust-lib/lib-ot/src/lib.rs


+ 0 - 0
rust-lib/flowy-sqlite/Cargo.toml → rust-lib/lib-sqlite/Cargo.toml


+ 0 - 0
rust-lib/flowy-sqlite/src/conn_ext.rs → rust-lib/lib-sqlite/src/conn_ext.rs


+ 0 - 0
rust-lib/flowy-sqlite/src/database.rs → rust-lib/lib-sqlite/src/database.rs


+ 0 - 0
rust-lib/flowy-sqlite/src/errors.rs → rust-lib/lib-sqlite/src/errors.rs


+ 0 - 0
rust-lib/flowy-sqlite/src/lib.rs → rust-lib/lib-sqlite/src/lib.rs


+ 0 - 0
rust-lib/flowy-sqlite/src/pool.rs → rust-lib/lib-sqlite/src/pool.rs


+ 0 - 0
rust-lib/flowy-sqlite/src/pragma.rs → rust-lib/lib-sqlite/src/pragma.rs