Cargo Features

[dependencies]
hannibal = { version = "0.12.2", default-features = false, features = ["tokio_runtime", "async_runtime", "tokio", "runtime", "smol", "async-std"] }
default = tokio_runtime

The tokio_runtime feature is set by default whenever hannibal is added without default-features = false somewhere in the dependency tree.

tokio_runtime default = runtime

Enables tokio of async-global-executor and tokio

TODO: make tokio optional

Affects runtime::block_on

async_runtime = runtime

Enables async-global-executor

Affects runtime::sleep

tokio

Enables tokio, tokio of async-global-executor

runtime async_runtime? tokio_runtime

Features from optional dependencies

smol implicit feature

Enables smol

smol:

A small and fast async runtime

async-std implicit feature

Enables async-std

async-std:

Deprecated in favor of smol - Async version of the Rust standard library