Cargo.toml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [package]
  2. name = "lib-infra"
  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. uuid = { version = "0.8", features = ["serde", "v4"] }
  8. log = "0.4.14"
  9. chrono = "0.4.19"
  10. bytes = { version = "1.0" }
  11. pin-project = "1.0"
  12. futures-core = { version = "0.3" }
  13. tokio = { version = "1.0", features = ["time", "rt"] }
  14. rand = "0.8.3"
  15. cmd_lib = { version = "1", optional = true }
  16. protoc-rust = { version = "2", optional = true }
  17. walkdir = { version = "2", optional = true }
  18. flowy-ast = { path = "../flowy-ast", optional = true}
  19. similar = { version = "1.2.2", optional = true }
  20. syn = { version = "1.0.60", features = ["extra-traits", "parsing", "derive", "full"], optional = true }
  21. fancy-regex = { version = "0.5.0", optional = true }
  22. lazy_static = { version = "1.4.0", optional = true }
  23. tera = { version = "1.5.0", optional = true}
  24. itertools = {versino = "0.10", optional = true}
  25. phf = { version = "0.8.0", features = ["macros"], optional = true }
  26. console = {version = "0.14.0", optional = true}
  27. serde = { version = "1.0", features = ["derive"], optional = true}
  28. toml = {version = "0.5.8", optional = true}
  29. [features]
  30. pb_gen = ["cmd_lib", "protoc-rust", "walkdir"]
  31. proto_gen = [
  32. "flowy-ast",
  33. "similar",
  34. "syn",
  35. "fancy-regex",
  36. "lazy_static",
  37. "tera",
  38. "itertools",
  39. "phf",
  40. "walkdir",
  41. "console",
  42. "serde",
  43. "toml"
  44. ]
  45. dart = []