rtmp-runtime 0.7.1

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.
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 = "rtmp-runtime"
version = "0.7.1"
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"]
tokio = [
    "dep:tokio",
    "dep:tokio-util",
    "dep:futures-util",
    "dep:bytes",
    "dep:url",
]

[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 = "client_adapter"
path = "tests/client_adapter.rs"

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

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

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

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

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

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

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

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

[dependencies.bytes]
version = "1"
optional = true

[dependencies.futures-util]
version = "0.3"
features = [
    "sink",
    "std",
]
optional = true
default-features = false

[dependencies.log]
version = "0.4"

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

[dependencies.thiserror]
version = "2"

[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 = [
    "full",
    "test-util",
]

[dev-dependencies.transmux]
version = "0.25"
features = ["std"]
default-features = false

[lints.rust]
unsafe_code = "deny"

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