Cargo.toml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 }
  17. http-error-code = { git = "https://github.com/AppFlowy-IO/AppFlowy-Server", branch = "refactor/appflowy_server", optional = true }
  18. flowy-sqlite = { path = "../flowy-sqlite", optional = true}
  19. r2d2 = { version = "0.8", optional = true}
  20. collab-database = { version = "0.1.0", optional = true }
  21. collab-document = { version = "0.1.0", optional = true }
  22. [features]
  23. adaptor_dispatch = ["lib-dispatch"]
  24. adaptor_serde = ["serde_json"]
  25. adaptor_reqwest = ["reqwest"]
  26. adaptor_database = ["flowy-sqlite", "r2d2"]
  27. adaptor_server_error = ["http-error-code"]
  28. dart = ["flowy-codegen/dart"]
  29. ts = ["flowy-codegen/ts"]
  30. collab = ["collab-database", "collab-document"]
  31. [build-dependencies]
  32. flowy-codegen = { path = "../../../shared-lib/flowy-codegen", features = ["proto_gen"]}