Cargo.toml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [workspace]
  2. members = [
  3. ".",
  4. "bench"
  5. ]
  6. [package]
  7. name = "thingbuf"
  8. version = "0.1.0"
  9. edition = "2021"
  10. rust-version = "1.57.0"
  11. author = "Eliza Weisman <eliza@buoyant.io>"
  12. license = "MIT"
  13. repository = "https://github.com/hawkw/thingbuf"
  14. homepage = "https://github.com/hawkw/thingbuf"
  15. description = """
  16. I'm at the buffer pool. I'm at the MPSC channel. I'm at the combination MPSC channel and buffer pool.
  17. """
  18. keywords = ["lock-free", "queue", "channel", "mpsc", "pool"]
  19. categories = ["asynchronous", "concurrency", "data-structures", "no-std"]
  20. exclude = ["/.github", "/.cargo", "/bin", "/bench", "/assets"]
  21. [features]
  22. std = ["alloc", "parking_lot"]
  23. alloc = []
  24. default = ["std"]
  25. static = []
  26. [dependencies]
  27. pin-project = "1"
  28. parking_lot = { version = "0.12", optional = true, default-features = false }
  29. [dev-dependencies]
  30. tokio = { version = "1.14.0", features = ["rt", "rt-multi-thread", "macros", "sync"] }
  31. # So that we can use `poll_fn` in tests.
  32. futures-util = { version = "0.3", default-features = false }
  33. [target.'cfg(loom)'.dev-dependencies]
  34. loom = { version = "0.5.4", features = ["checkpoint", "futures"] }
  35. tracing-subscriber = { version = "0.3", default-features = false, features = ["std", "fmt"] }
  36. tracing = { version = "0.1", default-features = false, features = ["std"] }
  37. # Custom profile for Loom tests: enable release optimizations so that the loom
  38. # tests are less slow, but don't disable debug assertions.
  39. [profile.loom]
  40. inherits = "test"
  41. lto = true
  42. opt-level = 3
  43. [patch.crates-io]
  44. loom = { git = "https://github.com/tokio-rs/loom", rev = "555b52fdb267964f0950a52be87b0f28c40b054c" }
  45. [package.metadata.docs.rs]
  46. all-features = true
  47. rustdoc-args = ["--cfg", "docsrs"]