Cargo.toml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.3", features = ["checkpoint", "futures"] }
  13. tracing-subscriber = { version = "0.3", default-features = false, features = ["std", "fmt"] }
  14. tracing = { version = "0.1", default-features = false, features = ["std"] }
  15. # So that we can use `poll_fn` in tests.
  16. futures = "0.3"
  17. criterion = { version = "0.3.5", features = ["async_tokio"] }
  18. # for comparison benchmarks
  19. crossbeam = "0.8.1"
  20. tokio = { version = "1.14.0", features = ["rt", "rt-multi-thread", "sync", "macros"] }
  21. async-std = "1"
  22. # Custom profile for Loom tests: enable release optimizations so that the loom
  23. # tests are less slow, but don't disable debug assertions.
  24. [profile.loom]
  25. inherits = "test"
  26. lto = true
  27. opt-level = 3
  28. [[bench]]
  29. name = "sync_mpsc"
  30. harness = false
  31. [[bench]]
  32. name = "async_mpsc"
  33. harness = false
  34. [patch.crates-io]
  35. loom = { git = "https://github.com/tokio-rs/loom", branch = "eliza/fix-double-panic-in-drop" }