Cargo Features
[dependencies]
backon = { version = "1.4.0", default-features = false, features = ["std", "std-blocking-sleep", "gloo-timers-sleep", "tokio-sleep", "futures-timer-sleep", "embassy-sleep"] }
- default = gloo-timers-sleep, std, std-blocking-sleep, tokio-sleep
-
These default features are set whenever
backon
is added without
somewhere in the dependency tree.default-features = false - std default
- std-blocking-sleep default
-
Affects
blocking_sleep::DefaultBlockingSleeper
,blocking_sleep::StdSleeper
… - gloo-timers-sleep default
-
Enables futures of gloo-timers
Affects
sleep::DefaultSleeper
,sleep::GlooTimersSleep
… - tokio-sleep default
-
Affects
sleep::DefaultSleeper
,sleep::TokioSleeper
… - futures-timer-sleep = futures-timer
-
Affects
sleep::FuturesTimerSleep
… - embassy-sleep = embassy-time
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- embassy-time embassy-sleep?
- futures-timer not wasm32 wasm32 futures-timer-sleep?
- gloo-timers wasm32 gloo-timers-sleep
- tokio not wasm32 wasm32 tokio-sleep