# 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 = "rtc-dtls"
version = "0.8.0"
authors = ["Rain Liu <yliu@webrtc.rs>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "RTC DTLS in Rust"
homepage = "https://webrtc.rs"
documentation = "https://docs.rs/rtc-dtls"
readme = "README.md"
keywords = [
    "sansio",
    "networking",
    "protocols",
]
categories = ["network-programming"]
license = "MIT/Apache-2.0"
repository = "https://github.com/webrtc-rs/rtc"
resolver = "2"

[features]
pem = ["dep:pem"]

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

[dependencies.aes]
version = "0.8.4"

[dependencies.aes-gcm]
version = "0.10.3"

[dependencies.bincode]
version = "1.3.3"

[dependencies.byteorder]
version = "1.5.0"

[dependencies.bytes]
version = "1.5.0"

[dependencies.cbc]
version = "0.1.2"
features = [
    "block-padding",
    "alloc",
]

[dependencies.ccm]
version = "0.5.0"

[dependencies.chacha20poly1305]
version = "0.10.1"

[dependencies.der-parser]
version = "9.0.0"

[dependencies.hmac]
version = "0.12.1"

[dependencies.log]
version = "0.4.21"

[dependencies.p256]
version = "0.13.2"
features = [
    "default",
    "ecdh",
    "ecdsa",
]

[dependencies.p384]
version = "0.13.0"

[dependencies.pem]
version = "3.0.3"
optional = true

[dependencies.rand]
version = "0.9"

[dependencies.rand_core]
version = "0.6.4"

[dependencies.rcgen]
version = "0.13.2"
features = [
    "pem",
    "x509-parser",
]

[dependencies.ring]
version = "0.17.14"

[dependencies.rustls]
version = "0.23.27"
features = [
    "std",
    "ring",
]
default-features = false

[dependencies.sec1]
version = "0.7"
features = ["std"]

[dependencies.serde]
version = "1.0.197"
features = ["derive"]

[dependencies.sha1]
version = "0.10.6"

[dependencies.sha2]
version = "0.10.8"

[dependencies.shared]
version = "0.8.0"
features = [
    "crypto",
    "replay",
]
default-features = false
package = "rtc-shared"

[dependencies.subtle]
version = "2.5.0"

[dependencies.x25519-dalek]
version = "2.0.1"
features = ["static_secrets"]

[dependencies.x509-parser]
version = "0.16.0"

[dev-dependencies.anyhow]
version = "1.0.80"

[dev-dependencies.chrono]
version = "0.4.35"

[dev-dependencies.clap]
version = "4.5.2"
features = ["derive"]

[dev-dependencies.core_affinity]
version = "0.8.1"

[dev-dependencies.ctrlc]
version = "3.4.4"

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

[dev-dependencies.futures]
version = "0.3.30"

[dev-dependencies.local-sync]
version = "0.1.1"
