Cargo.toml 772 B

12345678910111213141516171819202122232425262728293031323334353637
  1. [package]
  2. name = "thingbuf"
  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. [features]
  7. std = ["alloc"]
  8. alloc = []
  9. default = ["std"]
  10. [dependencies]
  11. [dev-dependencies]
  12. loom = { version = "0.5", features = ["checkpoint", "futures"] }
  13. # So that we can use `poll_fn` in tests.
  14. futures = "0.3"
  15. criterion = { version = "0.3.5", features = ["async_tokio"] }
  16. # for comparison benchmarks
  17. crossbeam = "0.8.1"
  18. tokio = { version = "1.14.0", features = ["rt", "sync"] }
  19. async-std = "1"
  20. [profile.test]
  21. opt-level = 3
  22. [patch.crates-io]
  23. loom = { git = "https://github.com/tokio-rs/loom", branch = "master"}
  24. [[bench]]
  25. name = "sync_mpsc"
  26. harness = false
  27. [[bench]]
  28. name = "async_mpsc"
  29. harness = false