# 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-relay"
version = "0.10.24"
authors = ["Luke Curley"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Media over QUIC"
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]
default = [
    "iroh",
    "quinn",
    "websocket",
]
iroh = ["moq-native/iroh"]
jemalloc = [
    "dep:tikv-jemallocator",
    "dep:tikv-jemalloc-ctl",
]
noq = ["moq-native/noq"]
quiche = ["moq-native/quiche"]
quinn = ["moq-native/quinn"]
websocket = [
    "moq-native/websocket",
    "dep:qmux",
    "axum/ws",
]

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

[[bin]]
name = "moq-relay"
path = "src/main.rs"
doc = false

[dependencies.anyhow]
version = "1"
features = ["backtrace"]

[dependencies.axum]
version = "0.8"
features = ["tokio"]

[dependencies.axum-server]
version = "0.8"
features = ["tls-rustls"]

[dependencies.bytes]
version = "1"

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

[dependencies.futures]
version = "0.3"

[dependencies.http-body]
version = "1"

[dependencies.http-cache-reqwest]
version = "0.16"
features = ["manager-moka"]
default-features = false

[dependencies.jsonwebtoken]
version = "10"

[dependencies.moq-lite]
version = "0.15"
features = ["serde"]

[dependencies.moq-native]
version = "0.13"
features = ["aws-lc-rs"]
default-features = false

[dependencies.moq-token]
version = "0.5"
features = ["tokio"]

[dependencies.qmux]
version = "0.0.5"
features = ["ws"]
optional = true
default-features = false

[dependencies.reqwest]
version = "0.12"
features = ["rustls-tls"]
default-features = false

[dependencies.reqwest-middleware]
version = "0.4"

[dependencies.rustls]
version = "0.23"
features = ["aws-lc-rs"]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_with]
version = "3"
features = [
    "json",
    "base64",
]

[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.tokio]
version = "1.48"
features = ["full"]

[dependencies.toml]
version = "0.9"

[dependencies.tower-http]
version = "0.6"
features = ["cors"]

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.rcgen]
version = "0.13"

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

[dev-dependencies.wiremock]
version = "0.6"

[target."cfg(unix)".dependencies.sd-notify]
version = "0.5"
