Cargo.toml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. serde = { version = "1.0", features = ["derive"]}
  16. serde_json = "1.0"
  17. cmd_lib = { version = "1", optional = true }
  18. protoc-rust = { version = "2", optional = true }
  19. walkdir = { version = "2", optional = true }
  20. flowy-ast = { path = "../flowy-ast", optional = true}
  21. similar = { version = "1.2.2", optional = true }
  22. syn = { version = "1.0.60", features = ["extra-traits", "parsing", "derive", "full"], optional = true }
  23. fancy-regex = { version = "0.5.0", optional = true }
  24. lazy_static = { version = "1.4.0", optional = true }
  25. tera = { version = "1.5.0", optional = true}
  26. itertools = { version = "0.10", optional = true }
  27. phf = { version = "0.8.0", features = ["macros"], optional = true }
  28. console = {version = "0.14.0", optional = true}
  29. protoc-bin-vendored = { version = "3.0", optional = true }
  30. toml = {version = "0.5.8", optional = true}
  31. [features]
  32. proto_gen = [
  33. "flowy-ast",
  34. "similar",
  35. "syn",
  36. "fancy-regex",
  37. "lazy_static",
  38. "tera",
  39. "itertools",
  40. "phf",
  41. "walkdir",
  42. "console",
  43. "toml"
  44. ]
  45. pb_gen = ["cmd_lib", "protoc-rust", "walkdir", "protoc-bin-vendored",]
  46. dart = ["proto_gen"]