[package] name = "reqwest-retry-wasi" version = "0.3.0" authors = ["Rodrigo Gryzinski "] edition = "2018" description = "Retry middleware for reqwest." repository = "https://github.com/TrueLayer/reqwest-middleware" license = "MIT OR Apache-2.0" keywords = ["reqwest", "http", "middleware", "retry"] categories = ["web-programming::http-client"] [lib] name = "reqwest_retry" path = "src/lib.rs" [dependencies] reqwest-middleware-wasi = { version = "0.2.0", path = "../reqwest-middleware" } anyhow = "1.0.0" async-trait = "0.1.51" chrono = { version = "0.4.19", features = ["clock"], default-features = false } futures = "0.3.0" http = "0.2.0" reqwest_wasi = { version = "0.11.0", default-features = false } retry-policies = "0.2.0" task-local-extensions = "0.1.4" tracing = "0.1.26" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] hyper = "0.14.0" tokio = { version = "1.6.0", features = ["time"] } [target.'cfg(target_arch = "wasm32")'.dependencies] parking_lot = { version = "0.11.2", features = ["wasm-bindgen"] } # work around https://github.com/tomaka/wasm-timer/issues/14 wasm-timer = "0.2.5" getrandom = { version = "0.2.0", features = ["js"] } [dev-dependencies] paste = "1.0.0" tokio = { version = "1.0.0", features = ["full"] } wiremock = "0.5.0" futures = "0.3.0"