Cargo Features

[dependencies]
fluxion-runtime = { version = "0.8.0", default-features = false, features = ["std", "alloc", "runtime-tokio", "runtime-wasm", "runtime-embassy", "runtime-smol", "runtime-async-std"] }
default = runtime-tokio, std

These default features are set whenever fluxion-runtime is added without default-features = false somewhere in the dependency tree.

std default runtime-async-std? runtime-smol? runtime-tokio
alloc
runtime-tokio default = std

Enables parking_lot and tokio

Affects tokio::TokioRuntime, tokio::TokioTimer

runtime-wasm

Enables gloo-timers ^0.3, js-sys, parking_lot, and wasm-bindgen

Affects wasm::WasmRuntime, wasm::WasmInstant, wasm::WasmTimer

runtime-embassy

Enables embassy-time

Affects embassy::EmbassyRuntime, embassy::EmbassyInstant, embassy::EmbassyTimer

runtime-smol = std

Enables async-io and parking_lot

Affects smol::SmolRuntime, smol::SmolTimer, smol::SmolSleep

runtime-async-std = std

Enables async-io and parking_lot

Affects async_std::AsyncStdRuntime, async_std::AsyncStdTimer, async_std::AsyncStdSleep