# 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 = "2021"
rust-version = "1.75"
name = "picoserve"
version = "0.12.2"
authors = ["Samuel Hicks"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An async no_std HTTP server suitable for bare-metal environments"
readme = "README.md"
keywords = [
    "no_std",
    "http",
    "web",
    "framework",
]
categories = [
    "asynchronous",
    "network-programming",
    "web-programming::http-server",
]
license = "MIT"
repository = "https://github.com/sammhicks/picoserve"

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

[dependencies.const-sha1]
version = "0.3.0"
default-features = false

[dependencies.data-encoding]
version = "2.4.0"
default-features = false

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

[dependencies.embassy-net]
version = "0.4.0"
features = [
    "tcp",
    "proto-ipv4",
    "medium-ethernet",
]
optional = true

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

[dependencies.embedded-io-async]
version = "0.6.0"

[dependencies.futures-util]
version = "0.3.28"
default-features = false

[dependencies.heapless]
version = "0.8.0"
features = ["serde"]

[dependencies.lhash]
version = "1.0.1"
features = ["sha1"]

[dependencies.log]
version = "0.4.19"
optional = true
default-features = false

[dependencies.ryu]
version = "1.0.14"

[dependencies.serde]
version = "1.0.171"
features = ["derive"]
default-features = false

[dependencies.serde-json-core]
version = "0.6.0"

[dependencies.tokio]
version = "1.32.0"
features = [
    "io-util",
    "net",
    "time",
]
optional = true

[dev-dependencies.embedded-io-async]
version = "0.6.0"
features = ["std"]

[dev-dependencies.http-body-util]
version = "0.1.0"

[dev-dependencies.hyper]
version = "1.1.0"
features = [
    "client",
    "http1",
]

[dev-dependencies.tokio]
version = "1.0.0"
features = [
    "rt",
    "io-util",
    "net",
    "time",
    "macros",
    "sync",
]

[features]
alloc = []
defmt = [
    "dep:defmt",
    "embassy-net?/defmt",
    "serde-json-core/defmt",
]
embassy = [
    "dep:embassy-time",
    "dep:embassy-net",
]
log = ["dep:log"]
std = ["alloc"]
tokio = [
    "dep:tokio",
    "std",
    "serde/std",
]
