Cargo.toml 2.1 KB

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