srt-runtime 0.9.0

SRT (Secure Reliable Transport, draft-sharabayko-srt-01) packet codecs + sans-IO HSv5 Caller-Listener and Rendezvous handshake state machines, an ARQ reliability engine, a TSBPD delivery scheduler, LiveCC packet pacing, FileCC window-based congestion control, optional (crypto feature) payload encryption, and an optional (tokio feature) async UDP socket adapter; no_std core.
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"
rust-version = "1.95.0"
name = "srt-runtime"
version = "0.9.0"
authors = ["Alex Fishlock <alex.fishlock@racingjag.com>"]
build = false
exclude = ["docs/**"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SRT (Secure Reliable Transport, draft-sharabayko-srt-01) packet codecs + sans-IO HSv5 Caller-Listener and Rendezvous handshake state machines, an ARQ reliability engine, a TSBPD delivery scheduler, LiveCC packet pacing, FileCC window-based congestion control, optional (crypto feature) payload encryption, and an optional (tokio feature) async UDP socket adapter; no_std core."
readme = "README.md"
keywords = [
    "srt",
    "packet",
    "sans-io",
    "transport",
    "streaming",
]
categories = [
    "parser-implementations",
    "multimedia",
    "network-programming",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/fishloa/rust-broadcast"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
crypto = [
    "dep:aes",
    "dep:ctr",
    "dep:aes-kw",
    "dep:pbkdf2",
    "dep:hmac",
    "dep:sha1",
    "dep:zeroize",
    "dep:subtle",
]
default = ["std"]
serde = ["dep:serde"]
std = [
    "broadcast-common/std",
    "thiserror/std",
    "serde?/std",
    "dep:url",
    "dep:percent-encoding",
]
tokio = [
    "dep:tokio",
    "dep:getrandom",
    "dep:bytes",
    "dep:tokio-util",
    "std",
]

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

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

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

[[test]]
name = "it"
path = "tests/it/main.rs"

[dependencies.aes]
version = "0.9"
optional = true
default-features = false

[dependencies.aes-kw]
version = "0.3"
optional = true
default-features = false

[dependencies.broadcast-common]
version = "12.0.0"
default-features = false

[dependencies.bytes]
version = "1"
optional = true
default-features = false

[dependencies.ctr]
version = "0.10"
optional = true
default-features = false

[dependencies.getrandom]
version = "0.4"
optional = true
default-features = false

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

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

[dependencies.percent-encoding]
version = "2"
optional = true

[dependencies.serde]
version = "1"
features = [
    "derive",
    "alloc",
]
optional = true
default-features = false

[dependencies.sha1]
version = "0.11"
optional = true
default-features = false

[dependencies.subtle]
version = "2"
optional = true
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[dependencies.tokio]
version = "1"
features = [
    "net",
    "io-util",
    "rt",
    "macros",
    "time",
    "sync",
]
optional = true
default-features = false

[dependencies.tokio-util]
version = "0.7"
features = ["rt"]
optional = true
default-features = false

[dependencies.url]
version = "2"
optional = true

[dependencies.zeroize]
version = "1"
features = ["alloc"]
optional = true
default-features = false

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.tokio]
version = "1"
features = [
    "net",
    "io-util",
    "rt",
    "macros",
    "time",
    "sync",
    "test-util",
]
default-features = false

[lints.clippy]
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"

[lints.rust]
unsafe_code = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(fuzzing)"]