Cargo.toml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 = "../../../shared-lib/flowy-derive" }
  8. protobuf = { version = "2.28.0" }
  9. bytes = "1.4"
  10. anyhow = "1.0"
  11. thiserror = "1.0"
  12. fancy-regex = { version = "0.11.0" }
  13. lib-dispatch = { workspace = true, optional = true }
  14. serde_json = { version = "1.0", optional = true }
  15. serde_repr = { version = "0.1" }
  16. serde = "1.0"
  17. reqwest = { version = "0.11.14", optional = true, features = [
  18. "native-tls-vendored",
  19. ] }
  20. flowy-sqlite = { workspace = true, optional = true }
  21. r2d2 = { version = "0.8", optional = true }
  22. url = { version = "2.2", optional = true }
  23. collab-database = { version = "0.1.0", optional = true }
  24. collab-document = { version = "0.1.0", optional = true }
  25. tokio-postgres = { version = "0.7.8", optional = true }
  26. tokio = { version = "1.0", optional = true }
  27. client-api = { version = "0.1.0", optional = true }
  28. [features]
  29. impl_from_dispatch_error = ["lib-dispatch"]
  30. impl_from_serde = ["serde_json"]
  31. impl_from_reqwest = ["reqwest"]
  32. impl_from_sqlite = ["flowy-sqlite", "r2d2"]
  33. impl_from_collab = ["collab-database", "collab-document", "impl_from_reqwest"]
  34. impl_from_postgres = ["tokio-postgres"]
  35. impl_from_tokio = ["tokio"]
  36. impl_from_url = ["url"]
  37. impl_from_appflowy_cloud = ["client-api"]
  38. dart = ["flowy-codegen/dart"]
  39. ts = ["flowy-codegen/ts"]
  40. [build-dependencies]
  41. flowy-codegen = { path = "../../../shared-lib/flowy-codegen", features = [
  42. "proto_gen",
  43. ] }