# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.70" name = "situwaition" version = "0.3.2" authors = ["vados "] description = "Run a closure continuously, until is succeeds or times out." readme = "README.md" categories = ["asynchronous"] license = "MIT" repository = "https://github.com/t3hmrman/situwaition" [package.metadata.docs.rs] all-features = true [[example]] name = "sync" [[example]] name = "tokio" crate-type = ["bin"] required-features = ["tokio"] [[example]] name = "async-std" crate-type = ["bin"] path = "./examples/async_std.rs" required-features = ["async-std"] [dependencies.anyhow] version = "1.0.71" [dependencies.async-std] version = "1.12.0" features = ["attributes"] optional = true [dependencies.async-trait] version = "0.1.69" optional = true [dependencies.derive_builder] version = "0.12.0" [dependencies.thiserror] version = "1.0.40" [dependencies.tokio] version = "1.29.1" features = [ "time", "rt", "macros", ] optional = true [dev-dependencies.async-std] version = "1.12.0" features = ["attributes"] [dev-dependencies.thiserror] version = "1.0.40" [dev-dependencies.tokio] version = "1.29.1" features = [ "time", "rt", "macros", "rt-multi-thread", ] [build-dependencies.rustc_version] version = "0.4.0" [features] async-std = [ "dep:async-std", "dep:async-trait", ] default = [] tokio = [ "dep:tokio", "dep:async-trait", ]