[package]
edition = "2024"
rust-version = "1.95.0"
name = "rtmp-runtime"
version = "0.11.0"
authors = ["Alex Fishlock <alex.fishlock@racingjag.com>"]
build = false
exclude = ["docs/**"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sans-IO RTMP 1.0 (Adobe Real-Time Messaging Protocol) ingest session engine — a driveable server-side publish state machine over the handshake, chunk stream, AMF0, and message layers; optional tokio socket adapter."
readme = "README.md"
keywords = [
"rtmp",
"ingest",
"streaming",
"flv",
"live",
]
categories = [
"multimedia",
"network-programming",
]
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]
default = []
serde = ["dep:serde"]
target = [
"dep:url",
"dep:percent-encoding",
]
tokio = [
"dep:tokio",
"dep:tokio-util",
"dep:futures-util",
"dep:bytes",
"target",
]
[lib]
name = "rtmp_runtime"
path = "src/lib.rs"
[[example]]
name = "capture_publish"
path = "examples/capture_publish.rs"
required-features = ["tokio"]
[[example]]
name = "ingest_to_flv"
path = "examples/ingest_to_flv.rs"
[[test]]
name = "inbound_alloc"
path = "tests/inbound_alloc.rs"
[[test]]
name = "it"
path = "tests/it/main.rs"
[dependencies.broadcast-common]
version = "13.0.0"
default-features = false
[dependencies.bytes]
version = "1"
optional = true
[dependencies.futures-util]
version = "0.3"
features = [
"sink",
"std",
]
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.subtle]
version = "2"
default-features = false
[dependencies.thiserror]
version = "2"
default-features = false
[dependencies.tokio]
version = "1"
features = [
"net",
"io-util",
"rt",
"macros",
"sync",
"time",
]
optional = true
[dependencies.tokio-util]
version = "0.7"
features = ["codec"]
optional = true
default-features = false
[dependencies.url]
version = "2"
optional = true
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.tokio]
version = "1"
features = [
"net",
"io-util",
"rt",
"rt-multi-thread",
"macros",
"time",
"sync",
"test-util",
]
[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)"]