pk-command 1.2.1

A communication protocol designed for embedded devices
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "pk-command"
version = "1.2.1"
build = false
exclude = [
    ".github/",
    "Specification.md",
    "Specification_zh.md",
    "Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A communication protocol designed for embedded devices"
homepage = "https://github.com/lingrottin/PK-Command"
documentation = "https://docs.rs/pk-command"
readme = "README.md"
license = "MIT"
repository = "https://github.com/lingrottin/PK-Command.git"

[package.metadata.docs.rs]
all-features = true

[features]
default = ["std"]
doc = []
embassy = [
    "embassy-time",
    "embassy-runtime",
]
embassy-runtime = [
    "embassy-executor",
    "embassy-sync",
]
embassy-runtime-test = [
    "embassy",
    "embassy-executor/arch-std",
    "embassy-executor/executor-thread",
    "embassy-time/std",
    "static_cell",
]
smol-runtime = [
    "smol",
    "async-channel",
    "std",
]
std = []
tokio-runtime = [
    "tokio/rt",
    "std",
]
tokio-runtime-test = [
    "tokio-runtime",
    "tokio/sync",
    "tokio/time",
    "tokio/macros",
]

[lib]
name = "pk_command"
path = "src/lib.rs"

[[test]]
name = "async_embassy"
path = "tests/async_embassy.rs"

[[test]]
name = "async_smol"
path = "tests/async_smol.rs"

[[test]]
name = "async_tokio"
path = "tests/async_tokio.rs"

[[test]]
name = "multithread"
path = "tests/multithread.rs"

[dependencies.async-channel]
version = "1.8"
optional = true

[dependencies.embassy-executor]
version = "0.9.1"
optional = true

[dependencies.embassy-sync]
version = "0.7.2"
optional = true

[dependencies.embassy-time]
version = "0.5.0"
optional = true

[dependencies.smol]
version = "1.3"
optional = true

[dependencies.static_cell]
version = "2.1.1"
optional = true

[dependencies.tokio]
version = "1.43"
optional = true

[dev-dependencies.critical-section]
version = "1.2"
features = ["std"]