Cargo.toml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [package]
  2. name = "flowy-codegen"
  3. version = "0.1.0"
  4. edition = "2021"
  5. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  6. [dependencies]
  7. log = "0.4.17"
  8. serde = { version = "1.0", features = ["derive"]}
  9. serde_json = "1.0"
  10. flowy-ast = { path = "../flowy-ast"}
  11. quote = "1.0"
  12. cmd_lib = { version = "1.3.0", optional = true }
  13. protoc-rust = { version = "2", optional = true }
  14. walkdir = { version = "2", optional = true }
  15. similar = { version = "1.3.0", optional = true }
  16. syn = { version = "1.0.109", features = ["extra-traits", "parsing", "derive", "full"] }
  17. fancy-regex = { version = "0.10.0", optional = true }
  18. lazy_static = { version = "1.4.0", optional = true }
  19. tera = { version = "1.17.1", optional = true}
  20. itertools = { version = "0.10", optional = true }
  21. phf = { version = "0.8.0", features = ["macros"], optional = true }
  22. console = {version = "0.14.1", optional = true}
  23. protoc-bin-vendored = { version = "3.0", optional = true }
  24. toml = {version = "0.5.11", optional = true}
  25. [features]
  26. proto_gen = [
  27. "similar",
  28. "fancy-regex",
  29. "lazy_static",
  30. "tera",
  31. "itertools",
  32. "phf",
  33. "walkdir",
  34. "console",
  35. "toml",
  36. "cmd_lib",
  37. "protoc-rust",
  38. "walkdir",
  39. "protoc-bin-vendored",
  40. ]
  41. dart_event = ["walkdir", "tera", ]
  42. dart = ["proto_gen", "dart_event"]
  43. ts_event = ["walkdir", "tera", ]
  44. ts = ["proto_gen", "ts_event"]