Cargo.toml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [workspace]
  2. members = [
  3. ".",
  4. "bench"
  5. ]
  6. [package]
  7. name = "thingbuf"
  8. version = "0.1.4"
  9. edition = "2021"
  10. rust-version = "1.57.0"
  11. authors = ["Eliza Weisman <[email protected]>"]
  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. memoffset = "0.9.0"
  30. [dev-dependencies]
  31. tokio = { version = "1.14.0", features = ["rt", "rt-multi-thread", "macros", "sync"] }
  32. # So that we can use `poll_fn` in tests.
  33. futures-util = { version = "0.3", default-features = false }
  34. [target.'cfg(loom)'.dev-dependencies]
  35. loom = { version = "0.5.6", features = ["checkpoint", "futures"] }
  36. tracing-subscriber = { version = "0.3", default-features = false, features = ["std", "fmt"] }
  37. tracing = { version = "0.1", default-features = false, features = ["std"] }
  38. # Custom profile for Loom tests: enable release optimizations so that the loom
  39. # tests are less slow, but don't disable debug assertions.
  40. [profile.loom]
  41. inherits = "test"
  42. lto = true
  43. opt-level = 3
  44. [patch.crates-io]
  45. loom = { git = "https://github.com/tokio-rs/loom", rev = "a93bf2390e0fcfdb7c5899b31db0e4e795ab4aab" }
  46. [package.metadata.docs.rs]
  47. all-features = true
  48. rustdoc-args = ["--cfg", "docsrs"]