# 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-macros"
version = "0.4.1"
authors = ["Cedric Rivard <cedric@rivard.info>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Proc-macro for embassy-supervisor: declares a task graph and computes its topological order at compile time."
documentation = "https://docs.rs/embassy-supervisor-macros"
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]
local-resources = []
metadata-names = []
pool = []
trace = []
trace-hooks = ["trace"]
trace-names = [
    "trace",
    "metadata-names",
]

[lib]
name = "embassy_supervisor_macros"
path = "src/lib.rs"
proc-macro = true

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

[dependencies.proc-macro2]
version = "1"

[dependencies.quote]
version = "1"

[dependencies.syn]
version = "2.0.118"
features = ["full"]

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

[dev-dependencies.embassy-executor]
version = "0.10"
features = [
    "platform-std",
    "executor-thread",
]

[dev-dependencies.embassy-time]
version = "0.5"
features = ["mock-driver"]

[dev-dependencies.trybuild]
version = "1"
