Cargo.toml 555 B

1234567891011121314151617181920212223242526
  1. [package]
  2. name = "shared"
  3. version = "0.1.3"
  4. edition = "2021"
  5. [features]
  6. shared = ["dep:tokio"]
  7. data = []
  8. cast_into = ["data"]
  9. serde = ["dep:serde", "data"]
  10. [dependencies]
  11. tokio = { version = "1.40.0", features = ["macros", "rt", "rt-multi-thread", "sync", "time"], optional = true}
  12. serde = { version = "1.0", features = ["derive"], optional = true}
  13. [[example]]
  14. name = "collection_data_example"
  15. required-features = ["data"]
  16. [[example]]
  17. name = "data_example"
  18. required-features = ["data"]
  19. [[example]]
  20. name = "doc_example"
  21. required-features = ["shared"]