Cargo.toml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  12. [features]
  13. std = ["alloc", "parking_lot"]
  14. alloc = []
  15. default = ["std"]
  16. static = []
  17. [dependencies]
  18. pin-project = "1"
  19. parking_lot = { version = "0.11", optional = true, default-features = false }
  20. [dev-dependencies]
  21. tokio = { version = "1.14.0", features = ["rt", "rt-multi-thread", "macros", "sync"] }
  22. # So that we can use `poll_fn` in tests.
  23. futures-util = { version = "0.3", default-features = false }
  24. [target.'cfg(loom)'.dev-dependencies]
  25. loom = { version = "0.5.4", features = ["checkpoint", "futures"] }
  26. tracing-subscriber = { version = "0.3", default-features = false, features = ["std", "fmt"] }
  27. tracing = { version = "0.1", default-features = false, features = ["std"] }
  28. # Custom profile for Loom tests: enable release optimizations so that the loom
  29. # tests are less slow, but don't disable debug assertions.
  30. [profile.loom]
  31. inherits = "test"
  32. lto = true
  33. opt-level = 3
  34. [patch.crates-io]
  35. loom = { git = "https://github.com/tokio-rs/loom", rev = "555b52fdb267964f0950a52be87b0f28c40b054c" }
  36. [package.metadata.docs.rs]
  37. all-features = true
  38. rustdoc-args = ["--cfg", "docsrs"]