Skip to content

Commit

Permalink
Merge pull request #12 from Miaxos/develop
Browse files Browse the repository at this point in the history
Cloudflare worker fix
  • Loading branch information
softprops authored Jul 29, 2024
2 parents 6db8c5e + cb03068 commit 32becef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ maintenance = { status = "actively-developed" }
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["log", "rand"]
wasm-bindgen = ["getrandom/wasm-bindgen"]
wasm-bindgen = ["futures-timer/wasm-bindgen"]

[dependencies]
log = { version = "0.4", optional = true }
rand = { version = "0.8", optional = true }
getrandom = { version = "0.2", optional = true }
wasm-timer = "0.2"
futures-timer = { version = "3" }

[dev-dependencies]
approx = "0.5"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
//! [dependencies]
//! again = { version = "xxx", features = ["wasm-bindgen"] }
//! ```
use futures_timer::Delay;
#[cfg(feature = "rand")]
use rand::{distributions::OpenClosed01, thread_rng, Rng};
use std::{cmp::min, future::Future, time::Duration};
use wasm_timer::Delay;

/// Retries a fallible `Future` with a default `RetryPolicy`
///
Expand Down

0 comments on commit 32becef

Please sign in to comment.