[package] name = "nolocal-block-on" version = "1.0.1" edition = "2021" authors = ["Matti "] description = "futures_lite::future::block_on that can run without using thread-locals" categories = ["asynchronous", "concurrency"] keywords = ["async", "thread", "thread-local", "atexit", "futures"] license = "MPL-2.0" repository = "https://gitlab.com/infomorphic-matti/nolocal-block-on" homepage = "https://gitlab.com/infomorphic-matti/nolocal-block-on" documentation = "https://docs.rs/nolocal-block-on" [dependencies] # ^2.2 is important, as this is the first version where you can create a waker directly from an unparker. # We use parking rather than the stdlib thread park functions because it prevents deadlocks if the futures # also use the API: # See: https://github.com/smol-rs/futures-lite/pull/54#issuecomment-1183361388 parking = "^2.2" [dev-dependencies] # For examples and checking that it panics in at least one scenario where nolocal-block-on does not futures-lite = { version = "2", default-features = false, features = ["std"] } # For atexit - a location where we know that thread-local-storage does not work libc = { version = "0.2" } # For something with substantial capabilities that we can make all async-y to induce panic blocking = { version = "1" } # For synchronisation in examples async-lock = { version = "3", default-features = false, features = ["std"]} [package.metadata.docs.rs] all-features = true cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]