Cargo.toml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. [package]
  2. name = "flowy-document"
  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. flowy-client-sync = { path = "../flowy-client-sync"}
  8. revision-model = { path = "../../../shared-lib/revision-model"}
  9. document-model = { path = "../../../shared-lib/document-model"}
  10. ws-model = { path = "../../../shared-lib/ws-model"}
  11. flowy-derive = { path = "../flowy-derive" }
  12. lib-ot = { path = "../../../shared-lib/lib-ot" }
  13. lib-ws = { path = "../../../shared-lib/lib-ws" }
  14. lib-infra = { path = "../../../shared-lib/lib-infra" }
  15. lib-dispatch = { path = "../lib-dispatch" }
  16. flowy-sqlite = { path = "../flowy-sqlite", optional = true }
  17. flowy-revision = { path = "../flowy-revision" }
  18. flowy-revision-persistence = { path = "../flowy-revision-persistence" }
  19. flowy-error = { path = "../flowy-error", features = ["adaptor_sync", "adaptor_ot", "adaptor_serde", "adaptor_database", "adaptor_dispatch"] }
  20. flowy-notification = { path = "../flowy-notification" }
  21. diesel = {version = "1.4.8", features = ["sqlite"]}
  22. diesel_derives = {version = "1.4.1", features = ["sqlite"]}
  23. protobuf = {version = "2.28.0"}
  24. tokio = { version = "1.26", features = ["sync"]}
  25. tracing = { version = "0.1", features = ["log"] }
  26. bytes = { version = "1.4" }
  27. md5 = "0.7.0"
  28. strum = "0.21"
  29. strum_macros = "0.21"
  30. dashmap = "5"
  31. url = "2.3"
  32. serde = { version = "1.0", features = ["derive"] }
  33. serde_json = {version = "1.0"}
  34. chrono = "0.4.23"
  35. futures-util = "0.3.26"
  36. async-stream = "0.3.4"
  37. futures = "0.3.26"
  38. [dev-dependencies]
  39. flowy-test = { path = "../flowy-test" }
  40. flowy-document = { path = "../flowy-document", features = ["flowy_unit_test"]}
  41. derive_more = {version = "0.99", features = ["display"]}
  42. tracing-subscriber = "0.2.25"
  43. unicode-segmentation = "1.10"
  44. color-eyre = { version = "0.5", default-features = false }
  45. criterion = "0.3"
  46. rand = "0.8.5"
  47. [build-dependencies]
  48. flowy-codegen = { path = "../flowy-codegen"}
  49. [features]
  50. default = ["rev-sqlite"]
  51. sync = []
  52. cloud_sync = ["sync"]
  53. rev-sqlite = ["flowy-sqlite"]
  54. flowy_unit_test = ["lib-ot/flowy_unit_test", "flowy-revision/flowy_unit_test"]
  55. dart = ["flowy-codegen/dart", "flowy-notification/dart"]
  56. ts = ["flowy-codegen/ts", "flowy-notification/ts"]