# 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.93"
name = "esp-wifi-caddy"
version = "0.1.0"
authors = ["liebman <liebman@zod.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WiFi STA+AP manager for Embassy (esp-radio, embassy-net)"
readme = "README.md"
keywords = [
    "esp32",
    "wifi",
    "embassy",
    "embedded",
    "captive-portal",
]
categories = [
    "embedded",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/liebman/wifi-caddy"

[package.metadata.docs.rs]
features = [
    "esp32c6",
    "esp-hal-unstable",
]
targets = ["riscv32imac-unknown-none-elf"]
cargo-args = [
    "-Z",
    "build-std=alloc,core",
]

[features]
captive = ["wifi-caddy/captive"]
config = [
    "wifi-caddy/portal",
    "dep:embedded-io-async",
    "dep:sequential-storage",
    "dep:embassy-embedded-hal",
    "dep:esp-storage",
]
debug-server = ["wifi-caddy/debug-server"]
default = [
    "config",
    "captive",
    "partition-table",
]
defmt = [
    "dep:defmt",
    "esp-radio/defmt",
    "embassy-time/defmt",
    "embassy-net/defmt",
    "wifi-caddy/defmt",
]
esp-hal-unstable = ["esp-hal/unstable"]
esp32c6 = [
    "esp-hal/esp32c6",
    "esp-rtos/esp32c6",
    "esp-radio/esp32c6",
    "esp-storage/esp32c6",
    "esp-bootloader-esp-idf/esp32c6",
]
log = [
    "dep:log",
    "wifi-caddy/log",
]
nightly = ["wifi-caddy/nightly"]
partition-table = ["dep:esp-bootloader-esp-idf"]

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

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

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

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

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

[dependencies.embassy-net]
version = "0.8.0"
features = [
    "dhcpv4",
    "medium-ethernet",
    "tcp",
    "udp",
    "dns",
]

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

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

[dependencies.embedded-io-async]
version = "0.7"
optional = true

[dependencies.enumset]
version = "1.1.10"

[dependencies.esp-alloc]
version = "0.9.0"

[dependencies.esp-bootloader-esp-idf]
version = "0.4.0"
optional = true
default-features = false

[dependencies.esp-hal]
version = "1.0.0"
features = ["unstable"]

[dependencies.esp-radio]
version = "0.17.0"
features = [
    "esp-alloc",
    "smoltcp",
    "unstable",
    "wifi",
]

[dependencies.esp-rtos]
version = "0.2.0"
features = [
    "embassy",
    "esp-alloc",
    "esp-radio",
]

[dependencies.esp-storage]
version = "0.8.1"
optional = true

[dependencies.log]
version = "0.4"
optional = true

[dependencies.sequential-storage]
version = "7.0.1"
features = ["alloc"]
optional = true

[dependencies.static_cell]
version = "2.1.1"
default-features = false

[dependencies.wifi-caddy]
version = "0.1.0"
