Cargo.toml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. lib-dispatch = { path = "../lib-dispatch", optional = true }
  13. serde_json = {version = "1.0", optional = true}
  14. serde_repr = { version = "0.1" }
  15. serde = "1.0"
  16. reqwest = { version = "0.11.14", optional = true, features = ["native-tls-vendored"] }
  17. flowy-sqlite = { path = "../flowy-sqlite", optional = true}
  18. r2d2 = { version = "0.8", optional = true}
  19. url = { version = "2.2", optional = true }
  20. collab-database = { version = "0.1.0", optional = true }
  21. collab-document = { version = "0.1.0", optional = true }
  22. tokio-postgres = { version = "0.7.8", optional = true }
  23. tokio = { version = "1.0", optional = true }
  24. [features]
  25. impl_from_dispatch_error = ["lib-dispatch"]
  26. impl_from_serde = ["serde_json"]
  27. impl_from_reqwest = ["reqwest"]
  28. impl_from_sqlite = ["flowy-sqlite", "r2d2"]
  29. impl_from_collab = ["collab-database", "collab-document", "impl_from_reqwest"]
  30. impl_from_postgres = ["tokio-postgres"]
  31. impl_from_tokio= ["tokio"]
  32. impl_from_url= ["url"]
  33. dart = ["flowy-codegen/dart"]
  34. ts = ["flowy-codegen/ts"]
  35. [build-dependencies]
  36. flowy-codegen = { path = "../../../shared-lib/flowy-codegen", features = ["proto_gen"]}