# 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 = "moq-native"
version = "0.17.8"
authors = ["Luke Curley"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Media over QUIC - Helper library for native applications"
readme = "README.md"
keywords = [
    "quic",
    "http3",
    "webtransport",
    "media",
    "live",
]
categories = [
    "multimedia",
    "network-programming",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/moq-dev/moq"
resolver = "2"

[features]
android-logcat = ["dep:tracing-android"]
aws-lc-rs = [
    "rustls/aws-lc-rs",
    "rcgen?/aws_lc_rs",
    "quinn?/rustls-aws-lc-rs",
]
default = [
    "quinn",
    "aws-lc-rs",
    "websocket",
    "tcp",
    "uds",
]
iroh = [
    "dep:web-transport-iroh",
    "dep:web-transport-proto",
]
jemalloc = [
    "dep:tikv-jemallocator",
    "dep:tikv-jemalloc-ctl",
]
noq = [
    "dep:web-transport-noq",
    "dep:rcgen",
    "dep:reqwest",
    "dep:rustls-webpki",
    "watch",
]
quiche = [
    "dep:web-transport-quiche",
    "dep:rcgen",
    "dep:reqwest",
    "dep:rustls-webpki",
    "dep:rustls-native-certs",
]
quinn = [
    "dep:quinn",
    "dep:web-transport-quinn",
    "dep:rcgen",
    "dep:reqwest",
    "dep:rustls-webpki",
    "watch",
]
ring = [
    "rustls/ring",
    "rcgen?/ring",
    "quinn?/rustls-ring",
]
tcp = ["dep:qmux"]
uds = [
    "tcp",
    "qmux/uds",
]
watch = ["dep:notify"]
websocket = ["dep:qmux"]

[lib]
name = "moq_native"
path = "src/lib.rs"
doctest = false

[[example]]
name = "chat"
path = "examples/chat.rs"

[[example]]
name = "clock"
path = "examples/clock.rs"

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

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

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

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.humantime]
version = "2.3"

[dependencies.humantime-serde]
version = "1.1"

[dependencies.moq-net]
version = "0.1"
features = ["serde"]

[dependencies.notify]
version = "8"
optional = true

[dependencies.parking_lot]
version = "0.12"
features = ["deadlock_detection"]

[dependencies.qmux]
version = "0.3"
features = [
    "wss",
    "tls",
    "tcp",
]
optional = true
default-features = false

[dependencies.quinn]
version = "0.11"
features = [
    "platform-verifier",
    "runtime-tokio",
    "bloom",
]
optional = true
default-features = false

[dependencies.rand]
version = "0.10.1"

[dependencies.rcgen]
version = "0.14"
optional = true
default-features = false

[dependencies.reqwest]
version = "0.13"
optional = true
default-features = false

[dependencies.rustls]
version = "0.23"

[dependencies.rustls-native-certs]
version = "0.8"
optional = true

[dependencies.rustls-platform-verifier]
version = "0.7"

[dependencies.rustls-webpki]
version = "0.103"
features = ["aws-lc-rs"]
optional = true

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

[dependencies.serde_with]
version = "3"
features = ["hex"]

[dependencies.socket2]
version = "0.6"

[dependencies.thiserror]
version = "2"

[dependencies.tikv-jemalloc-ctl]
version = "0.6"
optional = true

[dependencies.tikv-jemallocator]
version = "0.6"
features = [
    "profiling",
    "unprefixed_malloc_on_supported_platforms",
]
optional = true

[dependencies.time]
version = "0.3"

[dependencies.tokio]
version = "1.48"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.url]
version = "2"
features = ["serde"]

[dependencies.web-transport-iroh]
version = "0.6"
optional = true

[dependencies.web-transport-noq]
version = "0.2.0"
optional = true

[dependencies.web-transport-proto]
version = "0.6"
optional = true

[dependencies.web-transport-quiche]
version = "0.4"
optional = true

[dependencies.web-transport-quinn]
version = "0.11"
optional = true

[dependencies.web-transport-trait]
version = "0.3.4"

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

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

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

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

[dev-dependencies.rcgen]
version = "0.14"
features = [
    "pem",
    "aws_lc_rs",
]
default-features = false

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.toml]
version = "1.1"

[dev-dependencies.tracing-test]
version = "0.2"

[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.22"

[target.'cfg(target_os = "android")'.dependencies.tracing-android]
version = "0.2"
optional = true

[target.'cfg(target_os = "android")'.dependencies.webpki-roots]
version = "1"
