Cargo Features

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

[dependencies]
product-os-async-executor = { version = "0.0.16", features = ["moment", "exec_tokio", "exec_smol", "exec_async_std", "exec_embassy", "hyper_executor"] }
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

moment

Enables alloc of chrono

Affects moment::Moment

exec_tokio = tokio

Enables rt and time of tokio

Affects tokio::TokioExecutor, tokio::Task

exec_smol = smol

Affects smol::SmolExecutor, smol::Task

exec_async_std = async-std

Enables async-std

Affects async_std::AsyncStdExecutor, async_std::Task

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

Affects embassy::EmbassyExecutor, embassy::Task

hyper_executor = hyper

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?
hyper hyper_executor?