[package] authors = ["Thomas Sieverding "] edition = "2021" name = "async-local" version = "2.0.1" description = "For using thread locals within an async context and across await points" readme = "./README.md" license = "MIT" repository = "https://github.com/Bajix/async-local/" [dependencies] derive-async-local = { version = "2.0.0", path = "./derive-async-local" } generativity = "1.1" num_cpus = "1.16" tokio = { version = "1", features = ["rt", "rt-multi-thread"], optional = true } [dev-dependencies] tokio = { version = "1", features = ["macros"] } [target.'cfg(loom)'.dependencies] loom = { version = "0.7", features = [] } [lib] doctest = false bench = false [features] default = ["tokio-runtime"] # Enable with_blocking to spawn blocking tasks onto the Tokio Runtime tokio-runtime = ["tokio"] # Tokio Runtime configured with a barrier-synchronized shutdown as to ensure tasks never outlive worker thread owned local data barrier-protected-runtime = ["tokio-runtime", "tokio/rt-multi-thread"] [workspace] members = ["derive-async-local"] [profile.release] lto = "fat" opt-level = 3 codegen-units = 1 [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"]