Cargo.toml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. client-api = { version = "0.1.0", optional = true }
  27. [features]
  28. default = ["impl_from_appflowy_cloud", "impl_from_collab", "impl_from_reqwest", "impl_from_serde"]
  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_url = ["url"]
  36. impl_from_appflowy_cloud = ["client-api"]
  37. dart = ["flowy-codegen/dart"]
  38. ts = ["flowy-codegen/ts"]
  39. [build-dependencies]
  40. flowy-codegen = { path = "../../../shared-lib/flowy-codegen", features = [
  41. "proto_gen",
  42. ] }