Cargo.toml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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-revision = { path = "../flowy-revision" }
  20. flowy-error = { path = "../flowy-error", features = ["adaptor_ws"] }
  21. flowy-task = { path = "../flowy-task" }
  22. collab-persistence = { version = "0.1.0" }
  23. tracing = { version = "0.1", features = ["log"] }
  24. futures-core = { version = "0.3", default-features = false }
  25. bytes = "1.4"
  26. tokio = { version = "1.26", features = ["full"] }
  27. console-subscriber = { version = "0.1.8", optional = true }
  28. parking_lot = "0.12.1"
  29. revision-model = { path = "../../../shared-lib/revision-model" }
  30. ws-model = { path = "../../../shared-lib/ws-model" }
  31. lib-ws = { path = "../../../shared-lib/lib-ws" }
  32. lib-infra = { path = "../../../shared-lib/lib-infra" }
  33. serde = "1.0"
  34. serde_json = "1.0"
  35. [features]
  36. default = ["rev-sqlite"]
  37. profiling = ["console-subscriber", "tokio/tracing"]
  38. http_sync = ["flowy-folder/cloud_sync", "flowy-document/cloud_sync"]
  39. native_sync = ["flowy-folder/cloud_sync", "flowy-document/cloud_sync"]
  40. use_bunyan = ["lib-log/use_bunyan"]
  41. dart = [
  42. "flowy-user/dart",
  43. "flowy-net/dart",
  44. # "flowy-folder/dart",
  45. "flowy-folder2/dart",
  46. "flowy-database/dart",
  47. "flowy-document/dart",
  48. ]
  49. ts = [
  50. "flowy-user/ts",
  51. "flowy-net/ts",
  52. # "flowy-folder/ts",
  53. "flowy-folder2/ts",
  54. "flowy-database/ts",
  55. "flowy-document/ts",
  56. ]
  57. rev-sqlite = [
  58. "flowy-sqlite",
  59. "flowy-user/rev-sqlite",
  60. "flowy-folder/rev-sqlite",
  61. "flowy-database/rev-sqlite",
  62. "flowy-document/rev-sqlite",
  63. ]
  64. openssl_vendored = ["flowy-sqlite/openssl_vendored"]