Cargo.toml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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"]
  13. alloc = []
  14. default = ["std"]
  15. [dependencies]
  16. pin-project = "1"
  17. [dev-dependencies]
  18. tokio = { version = "1.14.0", features = ["rt", "rt-multi-thread", "macros", "sync"] }
  19. # So that we can use `poll_fn` in tests.
  20. futures-util = { version = "0.3", default-features = false }
  21. [target.'cfg(loom)'.dev-dependencies]
  22. loom = { version = "0.5.4", features = ["checkpoint", "futures"] }
  23. tracing-subscriber = { version = "0.3", default-features = false, features = ["std", "fmt"] }
  24. tracing = { version = "0.1", default-features = false, features = ["std"] }
  25. # Custom profile for Loom tests: enable release optimizations so that the loom
  26. # tests are less slow, but don't disable debug assertions.
  27. [profile.loom]
  28. inherits = "test"
  29. lto = true
  30. opt-level = 3
  31. [patch.crates-io]
  32. loom = { git = "https://github.com/tokio-rs/loom", branch = "eliza/fix-double-panic-in-drop" }
  33. [package.metadata.docs.rs]
  34. all-features = true
  35. rustdoc-args = ["--cfg", "docsrs"]