Cargo.toml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [package]
  2. name = "flowy-error"
  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-derive = { path = "../flowy-derive" }
  8. protobuf = {version = "2.28.0"}
  9. bytes = "1.4"
  10. anyhow = "1.0"
  11. thiserror = "1.0"
  12. flowy-client-sync = { path = "../flowy-client-sync", optional = true}
  13. lib-dispatch = { path = "../lib-dispatch", optional = true }
  14. lib-ot = { path = "../../../shared-lib/lib-ot", optional = true}
  15. user-model = { path = "../../../shared-lib/user-model", optional = true}
  16. flowy-client-ws = { path = "../../../shared-lib/flowy-client-ws", optional = true }
  17. serde_json = {version = "1.0", optional = true}
  18. serde_repr = { version = "0.1" }
  19. serde = "1.0"
  20. reqwest = { version = "0.11.14", optional = true }
  21. http-error-code = { git = "https://github.com/AppFlowy-IO/AppFlowy-Server", branch = "refactor/appflowy_server", optional = true }
  22. flowy-sqlite = { path = "../flowy-sqlite", optional = true}
  23. r2d2 = { version = "0.8", optional = true}
  24. [features]
  25. adaptor_sync = ["flowy-client-sync"]
  26. adaptor_ot = ["lib-ot"]
  27. adaptor_dispatch = ["lib-dispatch"]
  28. adaptor_serde = ["serde_json"]
  29. adaptor_reqwest = ["reqwest"]
  30. adaptor_database = ["flowy-sqlite", "r2d2"]
  31. adaptor_ws= ["flowy-client-ws"]
  32. adaptor_user= ["user-model"]
  33. adaptor_server_error = ["http-error-code"]
  34. dart = ["flowy-codegen/dart"]
  35. ts = ["flowy-codegen/ts"]
  36. [build-dependencies]
  37. flowy-codegen = { path = "../flowy-codegen", features = ["proto_gen"]}