Cargo Features
[dependencies]
async-rate-limiter = { version = "1.1.0", default-features = false, features = ["rt-tokio", "rt-async-std"] }
- default = rt-tokio
-
The
rt-tokio
feature is set by default wheneverasync-rate-limiter
is added without
somewhere in the dependency tree.default-features = false - rt-tokio default = tokio, tokio-stream
-
Run
cargo t
to test this feature - rt-async-std = async-std
-
Run
cargo t --features rt-async-std --no-default-features
to test this feature
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.
- tokio rt-tokio
- tokio-stream rt-tokio
- async-std rt-async-std?
-
Enables async-std
use "unstable" features to enable
interval
function