[package] name = "rusturnate" version = "0.0.9" authors = ["Pascal G "] license = "MIT OR Apache-2.0" edition = "2021" description = "A sync or async mutex, with or without timeouts." repository = "https://gitlab.com/in2vd-open/rusturnate" readme = "README.md" categories = ["concurrency"] keywords = ["async", "sync", "mutex", "condvar", "result"] exclude = ["*.sh", ".gitlab-ci.yml", "art/*"] [features] default = ["std", "blocking", "suspending"] # Enables usage of std functionality std = [] # Enables awaiting results in threads by blocking blocking = ["std"] # Enabled awaiting results in futures by suspending suspending = [] # Enabled awaiting results in futures by suspending with a timeout suspending_with_timeout = ["std", "suspending", "futures-timer"] # Unsafe: Enables the unsafe `mark_poisoned` method on the `Editor` struct manual_poisoning = [] # Unsafe: Enables the unsafe `mark_poisoned` method on the `Rusturn` struct anytime_poisoning = ["manual_poisoning"] [dependencies] thiserror = "1.0" futures-timer = { version = "3.0", optional = true } [dev-dependencies] core_affinity = "0.8" tokio = { version = "1", features = ["macros", "rt-multi-thread"] } [package.metadata.docs.rs] all-features = true