Cargo.toml 1.2 KB

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