Cargo.toml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. flowy-user = { path = "../rust-lib/flowy-user" }
  55. flowy-workspace = { path = "../rust-lib/flowy-workspace" }
  56. flowy-document = { path = "../rust-lib/flowy-document" }
  57. flowy-ws = { path = "../rust-lib/flowy-ws" }
  58. flowy-ot = { path = "../rust-lib/flowy-ot" }
  59. flowy-net = { path = "../rust-lib/flowy-net", features = ["http_server"] }
  60. ormx = { version = "0.7", features = ["postgres"]}
  61. [dependencies.sqlx]
  62. version = "0.5.6"
  63. default-features = false
  64. features = [
  65. "runtime-actix-rustls",
  66. "macros",
  67. "postgres",
  68. "uuid",
  69. "chrono",
  70. "migrate",
  71. "offline",
  72. "any",
  73. ]
  74. [lib]
  75. path = "src/lib.rs"
  76. [[bin]]
  77. name = "backend"
  78. path = "src/main.rs"
  79. [dev-dependencies]
  80. parking_lot = "0.11"
  81. once_cell = "1.7.2"
  82. linkify = "0.5.0"
  83. flowy-user = { path = "../rust-lib/flowy-user" }
  84. flowy-workspace = { path = "../rust-lib/flowy-workspace" }
  85. flowy-ws = { path = "../rust-lib/flowy-ws" }