Cargo Features

product-os-async-executor has no features set by default.

[dependencies]
product-os-async-executor = { version = "0.0.15", features = ["all", "moment", "exec_tokio", "exec_smol", "exec_async_std", "exec_embassy"] }
default

These default features are set whenever product-os-async-executor is added without default-features = false somewhere in the dependency tree.

Enables clock of chrono, std of no-std-compat

all = exec_async_std, exec_embassy, exec_smol, exec_tokio
moment

Enables alloc of chrono

Affects moment::Moment

exec_tokio all? = tokio

Enables rt and time of tokio

Affects tokio::TokioExecutor, tokio::Task

exec_smol all? = smol

Affects smol::SmolExecutor, smol::Task

exec_async_std all? = async-std

Enables async-std

Affects async_std::AsyncStdExecutor, async_std::Task

exec_embassy all? = embassy-executor, embassy-macros, embassy-time

Affects embassy::EmbassyExecutor, embassy::Task

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 exec_tokio?
smol exec_smol?

Enables smol ^1.3.0

async-std exec_async_std?
embassy-executor exec_embassy?

Enables embassy-executor ^0.3.3

embassy-time exec_embassy?

Enables embassy-time ^0.1.5

embassy-macros exec_embassy?