Cargo.toml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. [package]
  2. name = "lib-dispatch"
  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. pin-project = "1.0"
  8. futures-core = { version = "0.3", default-features = false }
  9. futures-channel = "0.3.26"
  10. futures = "0.3.26"
  11. futures-util = "0.3.26"
  12. bytes = {version = "1.4", features = ["serde"]}
  13. tokio = { version = "1.26", features = ["full"] }
  14. nanoid = "0.4.0"
  15. log = "0.4.17"
  16. thread-id = "3.3.0"
  17. dyn-clone = "1.0"
  18. derivative = "2.2.0"
  19. serde_json = {version = "1.0", optional = true }
  20. serde = { version = "1.0", features = ["derive"], optional = true }
  21. serde_repr = { version = "0.1", optional = true }
  22. #optional crate
  23. bincode = { version = "1.3", optional = true}
  24. protobuf = {version = "2.28.0", optional = true}
  25. tracing = { version = "0.1"}
  26. [dev-dependencies]
  27. tokio = { version = "1.26", features = ["full"] }
  28. futures-util = "0.3.26"
  29. [features]
  30. default = ["use_protobuf"]
  31. use_serde = ["bincode", "serde_json", "serde", "serde_repr"]
  32. use_protobuf= ["protobuf"]