GatoPSKTLS 0.1.0

TLS 1.3 PSK client + server (no_std, no allocator). Fork of drogue-iot/embedded-tls extended with server-mode PSK_KE handshake — for embedded MQTT brokers and similar peers.
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 = "GatoPSKTLS"
version = "0.1.0"
authors = ["Egor Babushkin <babushkin.e.ge@gmail.com>"]
build = false
exclude = [
    ".github",
    "tests/data",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "TLS 1.3 PSK client + server (no_std, no allocator). Fork of drogue-iot/embedded-tls extended with server-mode PSK_KE handshake — for embedded MQTT brokers and similar peers."
homepage = "https://github.com/babasha/GatoPSKTLS"
documentation = "https://docs.rs/GatoPSKTLS"
readme = "README.md"
keywords = [
    "embedded",
    "tls",
    "no_std",
    "psk",
    "server",
]
categories = [
    "embedded",
    "network-programming",
    "no-std",
]
license = "Apache-2.0"
repository = "https://github.com/babasha/GatoPSKTLS"

[features]
alloc = []
default = [
    "std",
    "log",
    "tokio",
]
defmt = [
    "dep:defmt",
    "embedded-io/defmt",
    "heapless/defmt",
]
ed25519 = [
    "dep:ed25519-dalek",
    "rustpki",
]
p384 = [
    "dep:p384",
    "rustpki",
]
rsa = [
    "dep:rsa",
    "rustpki",
    "alloc",
]
rustpki = [
    "dep:der",
    "dep:const-oid",
]
std = [
    "embedded-io/std",
    "embedded-io-async/std",
]
tokio = ["embedded-io-adapters/tokio-1"]
webpki = ["dep:webpki"]

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

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

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

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

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

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

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

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

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

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

[dependencies.aes-gcm]
version = "0.10.1"
features = ["aes"]
default-features = false

[dependencies.const-oid]
version = "0.10.1"
optional = true

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

[dependencies.der]
version = "0.8.0-rc.2"
features = [
    "derive",
    "oid",
    "time",
    "heapless",
]
optional = true

[dependencies.digest]
version = "0.10.3"
features = ["core-api"]
default-features = false

[dependencies.ecdsa]
version = "0.16.9"
default-features = false

[dependencies.ed25519-dalek]
version = "2.2"
optional = true
default-features = false

[dependencies.embedded-io]
version = "0.7"

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

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

[dependencies.generic-array]
version = "0.14"
default-features = false

[dependencies.heapless]
version = "0.9"
default-features = false

[dependencies.heapless_typenum]
version = "0.6"
default-features = false
package = "heapless"

[dependencies.hkdf]
version = "0.12.3"

[dependencies.hmac]
version = "0.12.1"

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

[dependencies.p256]
version = "0.13"
features = [
    "ecdh",
    "ecdsa",
    "sha256",
]
default-features = false

[dependencies.p384]
version = "0.13"
features = [
    "ecdsa",
    "sha384",
]
optional = true
default-features = false

[dependencies.portable-atomic]
version = "1.6.0"
default-features = false

[dependencies.rand_core]
version = "0.6.3"
default-features = false

[dependencies.rsa]
version = "0.9.9"
features = ["sha2"]
optional = true
default-features = false

[dependencies.sha2]
version = "0.10.2"
default-features = false

[dependencies.signature]
version = "2.2"
default-features = false

[dependencies.typenum]
version = "1.15.0"
default-features = false

[dependencies.webpki]
version = "0.101.7"
optional = true
default-features = false
package = "rustls-webpki"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.log]
version = "0.4"

[dev-dependencies.mio]
version = "0.8.3"
features = [
    "os-poll",
    "net",
]

[dev-dependencies.openssl]
version = "0.10.44"

[dev-dependencies.pem-parser]
version = "0.1.1"

[dev-dependencies.rand]
version = "0.8"

[dev-dependencies.rustls]
version = "0.21.6"

[dev-dependencies.rustls-pemfile]
version = "1.0"

[dev-dependencies.serde]
version = "1.0"
features = ["derive"]

[dev-dependencies.tokio]
version = "1"
features = ["full"]