Cargo.toml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. [package]
  2. name = "backend"
  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. actix = "0.12"
  8. #actix-web = "3"
  9. #actix-http = "2.2.1"
  10. #actix-web-actors = "3"
  11. actix-codec = "0.4"
  12. actix-web = "4.0.0-beta.8"
  13. actix-http = "3.0.0-beta.8"
  14. actix-rt = "2"
  15. actix-web-actors = { version = "4.0.0-beta.6" }
  16. actix-service = "2.0.0-beta.5"
  17. actix-identity = "0.4.0-beta.2"
  18. actix-cors = "0.6.0-beta.2"
  19. futures = "0.3.15"
  20. bytes = "1"
  21. toml = "0.5.8"
  22. dashmap = "4.0"
  23. log = "0.4.14"
  24. # tracing
  25. tracing = { version = "0.1", features = ["log"] }
  26. tracing-futures = "0.2.4"
  27. tracing-subscriber = { version = "0.2.12", features = ["registry", "env-filter", "ansi", "json"] }
  28. tracing-bunyan-formatter = "0.2.2"
  29. tracing-appender = "0.1"
  30. tracing-core = "0.1"
  31. tracing-log = { version = "0.1.1"}
  32. # serde
  33. serde_json = "1.0"
  34. serde = { version = "1.0", features = ["derive"] }
  35. serde_repr = "0.1"
  36. serde-aux = "1.0.1"
  37. derive_more = {version = "0.99"}
  38. protobuf = {version = "2.20.0"}
  39. uuid = { version = "0.8", features = ["serde", "v4"] }
  40. config = { version = "0.10.1", default-features = false, features = ["yaml"] }
  41. chrono = { version = "0.4", features = ["serde"] }
  42. anyhow = "1.0.40"
  43. thiserror = "1.0.24"
  44. bcrypt = "0.10"
  45. jsonwebtoken = "7.2"
  46. sql-builder = "3.1.1"
  47. lazy_static = "1.4"
  48. tokio = { version = "1", features = ["full"] }
  49. parking_lot = "0.11"
  50. md5 = "0.7.0"
  51. futures-core = { version = "0.3", default-features = false }
  52. pin-project = "1.0.0"
  53. byteorder = {version = "1.3.4"}
  54. async-stream = "0.3.2"
  55. flowy-user = { path = "../rust-lib/flowy-user" }
  56. flowy-workspace = { path = "../rust-lib/flowy-workspace", default-features = false, features = ["backend_service"]}
  57. flowy-document = { path = "../rust-lib/flowy-document" }
  58. flowy-ws = { path = "../rust-lib/flowy-ws" }
  59. flowy-ot = { path = "../rust-lib/flowy-ot" }
  60. flowy-net = { path = "../rust-lib/flowy-net", features = ["http_server"] }
  61. ormx = { version = "0.7", features = ["postgres"]}
  62. [dependencies.sqlx]
  63. version = "0.5.6"
  64. default-features = false
  65. features = [
  66. "runtime-actix-rustls",
  67. "macros",
  68. "postgres",
  69. "uuid",
  70. "chrono",
  71. "migrate",
  72. "offline",
  73. "any",
  74. ]
  75. [lib]
  76. path = "src/lib.rs"
  77. [[bin]]
  78. name = "backend"
  79. path = "src/main.rs"
  80. [features]
  81. flowy_test = []
  82. ignore_auth = []
  83. [dev-dependencies]
  84. parking_lot = "0.11"
  85. once_cell = "1.7.2"
  86. linkify = "0.5.0"
  87. backend = { path = ".", features = ["flowy_test"]}
  88. flowy-user = { path = "../rust-lib/flowy-user", features = ["http_server"] }
  89. flowy-workspace = { path = "../rust-lib/flowy-workspace", default-features = false, features = ["http_server", "backend_service"] }
  90. flowy-ws = { path = "../rust-lib/flowy-ws" }
  91. flowy-sdk = { path = "../rust-lib/flowy-sdk" }
  92. flowy-test = { path = "../rust-lib/flowy-test" }
  93. flowy-infra = { path = "../rust-lib/flowy-infra" }
  94. flowy-ot = { path = "../rust-lib/flowy-ot" }
  95. flowy-document = { path = "../rust-lib/flowy-document", features = ["flowy_test", "http_server"] }
  96. flowy-sqlite = { path = "../rust-lib/flowy-sqlite" }
  97. futures-util = "0.3.15"