Cargo.toml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. [package]
  2. name = "flowy-core"
  3. version = "0.1.0"
  4. edition = "2018"
  5. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  6. [dependencies]
  7. lib-dispatch = { path = "../lib-dispatch" }
  8. lib-log = { path = "../lib-log" }
  9. flowy-user = { path = "../flowy-user" }
  10. flowy-net = { path = "../flowy-net" }
  11. flowy-folder = { path = "../flowy-folder" }
  12. flowy-folder2 = { path = "../flowy-folder2" }
  13. flowy-database = { path = "../flowy-database" }
  14. database-model = { path = "../../../shared-lib/database-model" }
  15. user-model = { path = "../../../shared-lib/user-model" }
  16. flowy-client-ws = { path = "../../../shared-lib/flowy-client-ws" }
  17. flowy-sqlite = { path = "../flowy-sqlite", optional = true }
  18. flowy-document = { path = "../flowy-document" }
  19. flowy-document2 = { path = "../flowy-document2" }
  20. flowy-revision = { path = "../flowy-revision" }
  21. flowy-error = { path = "../flowy-error", features = ["adaptor_ws"] }
  22. flowy-task = { path = "../flowy-task" }
  23. collab-persistence = { version = "0.1.0" }
  24. tracing = { version = "0.1", features = ["log"] }
  25. futures-core = { version = "0.3", default-features = false }
  26. bytes = "1.4"
  27. tokio = { version = "1.26", features = ["full"] }
  28. console-subscriber = { version = "0.1.8", optional = true }
  29. parking_lot = "0.12.1"
  30. revision-model = { path = "../../../shared-lib/revision-model" }
  31. ws-model = { path = "../../../shared-lib/ws-model" }
  32. lib-ws = { path = "../../../shared-lib/lib-ws" }
  33. lib-infra = { path = "../../../shared-lib/lib-infra" }
  34. serde = "1.0"
  35. serde_json = "1.0"
  36. [features]
  37. default = ["rev-sqlite"]
  38. profiling = ["console-subscriber", "tokio/tracing"]
  39. http_sync = ["flowy-folder/cloud_sync", "flowy-document/cloud_sync"]
  40. native_sync = ["flowy-folder/cloud_sync", "flowy-document/cloud_sync"]
  41. use_bunyan = ["lib-log/use_bunyan"]
  42. dart = [
  43. "flowy-user/dart",
  44. "flowy-net/dart",
  45. # "flowy-folder/dart",
  46. "flowy-folder2/dart",
  47. "flowy-database/dart",
  48. "flowy-document/dart",
  49. "flowy-document2/dart",
  50. ]
  51. ts = [
  52. "flowy-user/ts",
  53. "flowy-net/ts",
  54. # "flowy-folder/ts",
  55. "flowy-folder2/ts",
  56. "flowy-database/ts",
  57. "flowy-document/ts",
  58. "flowy-document2/ts",
  59. ]
  60. rev-sqlite = [
  61. "flowy-sqlite",
  62. "flowy-user/rev-sqlite",
  63. "flowy-folder/rev-sqlite",
  64. "flowy-database/rev-sqlite",
  65. "flowy-document/rev-sqlite",
  66. ]
  67. openssl_vendored = ["flowy-sqlite/openssl_vendored"]