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 whenever async-rate-limiter is added without default-features = false somewhere in the dependency tree.

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