embassy-supervisor 0.3.4

A generic, HAL-agnostic task-lifecycle supervisor for the embassy async embedded framework: dependency-ordered bring-up/teardown, lifecycle modes, elastic task pools, and runtime start/stop/pause/resume control.
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"
rust-version = "1.85"
name = "embassy-supervisor"
version = "0.3.4"
authors = ["Cedric Rivard <cedric@rivard.info>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A generic, HAL-agnostic task-lifecycle supervisor for the embassy async embedded framework: dependency-ordered bring-up/teardown, lifecycle modes, elastic task pools, and runtime start/stop/pause/resume control."
documentation = "https://docs.rs/embassy-supervisor"
readme = "README.md"
keywords = [
    "embassy",
    "async",
    "embedded",
    "supervisor",
    "no-std",
]
categories = [
    "embedded",
    "asynchronous",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/cedrivard/embassy-supervisor"
resolver = "2"

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

[features]
control = []
default = [
    "control",
    "pool",
    "macros",
]
defmt = ["dep:defmt"]
local-resources = ["embassy-supervisor-macros?/local-resources"]
macros = ["dep:embassy-supervisor-macros"]
metadata-names = [
    "embassy-executor/metadata-name",
    "embassy-supervisor-macros?/metadata-names",
]
pool = ["embassy-supervisor-macros?/pool"]
trace = [
    "embassy-executor/trace",
    "embassy-supervisor-macros?/trace",
]
trace-hooks = [
    "trace",
    "embassy-supervisor-macros?/trace-hooks",
]
trace-names = [
    "trace",
    "metadata-names",
]
trace-nested = ["trace"]

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

[[test]]
name = "metadata_names"
path = "tests/metadata_names.rs"
required-features = [
    "metadata-names",
    "macros",
]

[[test]]
name = "multicore"
path = "tests/multicore.rs"
required-features = [
    "trace-nested",
    "trace-hooks",
    "macros",
]

[[test]]
name = "provider_node"
path = "tests/provider_node.rs"
required-features = ["macros"]

[[test]]
name = "resource_kinds"
path = "tests/resource_kinds.rs"
required-features = [
    "macros",
    "local-resources",
]

[[test]]
name = "resource_slots"
path = "tests/resource_slots.rs"
required-features = ["macros"]

[[test]]
name = "task_shells"
path = "tests/task_shells.rs"
required-features = ["macros"]

[[test]]
name = "teardown"
path = "tests/teardown.rs"
required-features = [
    "macros",
    "control",
]

[[test]]
name = "trace"
path = "tests/trace.rs"
required-features = [
    "trace-hooks",
    "macros",
]

[[test]]
name = "trace_nested"
path = "tests/trace_nested.rs"
required-features = [
    "trace-nested",
    "trace-hooks",
    "macros",
]

[dependencies.defmt]
version = "1.1.0"
optional = true

[dependencies.embassy-executor]
version = "0.10"

[dependencies.embassy-futures]
version = "0.1"

[dependencies.embassy-supervisor-macros]
version = "=0.4.1"
optional = true

[dependencies.embassy-sync]
version = "0.8"

[dependencies.embassy-time]
version = "0.5"

[dependencies.portable-atomic]
version = "1"
features = ["critical-section"]

[target.'cfg(not(target_os = "none"))'.dev-dependencies.critical-section]
version = "1"
features = ["std"]

[target.'cfg(not(target_os = "none"))'.dev-dependencies.embassy-executor]
version = "0.10"
features = [
    "platform-std",
    "executor-thread",
]

[target.'cfg(not(target_os = "none"))'.dev-dependencies.embassy-time]
version = "0.5"
features = ["mock-driver"]