Cargo Features

[dependencies]
pk-command = { version = "1.2.1", default-features = false, features = ["std", "embassy", "embassy-runtime", "tokio-runtime", "smol-runtime", "tokio-runtime-test", "embassy-runtime-test", "doc"] }
default = std

The std feature is set by default whenever pk-command is added without default-features = false somewhere in the dependency tree.

std default smol-runtime? tokio-runtime?

Affects util::VariableChangeListener, util::PkHashmapVariable, util::MethodImplementation, util::PkHashmapMethod, util::PkPromise, util::async_adapters.tokio, util::async_adapters.smol

embassy embassy-runtime-test? = embassy-runtime, embassy-time
embassy-runtime embassy? = embassy-executor, embassy-sync

Affects util::async_adapters.embassy

tokio-runtime tokio-runtime-test? = std

Enables rt of tokio

tokio:

Includes basic task execution capabilities

Affects util::async_adapters.tokio

smol-runtime = async-channel, smol, std

Affects util::async_adapters.smol

tokio-runtime-test = tokio-runtime

Enables macros, sync and time of tokio

embassy-runtime-test = embassy, static_cell

Enables arch-std and executor-thread of embassy-executor ^0.9.1 and std of embassy-time

embassy-time:

Create a time driver for std environments.

doc

Affects pk-command::doc_util

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.

embassy-time embassy? embassy-runtime-test?

Affects pk-command::EmbassyInstant

tokio tokio-runtime? tokio-runtime-test?
smol smol-runtime?

Enables smol ^1.3

async-channel smol-runtime?

Enables async-channel ^1.8

embassy-executor embassy-runtime? embassy-runtime-test?

Enables embassy-executor ^0.9.1

embassy-sync embassy-runtime?

Enables embassy-sync ^0.7.2

static_cell embassy-runtime-test?