[package]
edition = "2024"
rust-version = "1.94"
name = "librtmp2"
version = "0.1.1"
authors = [
"OpenRTMP",
"AlexanderWagnerDev <info@alexanderwagnerdev.com>",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "librtmp2 — RTMP/RTMPS protocol library"
readme = "README.md"
license = "MIT"
repository = "https://github.com/OpenRTMP/librtmp2"
[features]
default = ["tls"]
tls = ["openssl"]
[lib]
name = "librtmp2"
crate-type = [
"cdylib",
"staticlib",
"lib",
]
path = "src/lib.rs"
[[example]]
name = "ffmpeg_ingest"
path = "examples/ffmpeg_ingest.rs"
[[example]]
name = "minimal_client"
path = "examples/minimal_client.rs"
[[example]]
name = "minimal_server"
path = "examples/minimal_server.rs"
[[example]]
name = "play_pull"
path = "examples/play_pull.rs"
[[test]]
name = "e2e_audio_frames"
path = "tests/e2e_audio_frames.rs"
[[test]]
name = "e2e_multiple_frames"
path = "tests/e2e_multiple_frames.rs"
[[test]]
name = "e2e_publish_play_same_listener"
path = "tests/e2e_publish_play_same_listener.rs"
[[test]]
name = "e2e_publish_rejection"
path = "tests/e2e_publish_rejection.rs"
[[test]]
name = "server_client_loopback"
path = "tests/server_client_loopback.rs"
[[bench]]
name = "protocol"
path = "benches/protocol.rs"
harness = false
[[bench]]
name = "relay"
path = "benches/relay.rs"
harness = false
[dependencies.libc]
version = "0.2"
[dependencies.openssl]
version = "0.10.70"
optional = true
[dependencies.parking_lot]
version = "0.12"
[dependencies.thiserror]
version = "2"
[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]
[build-dependencies.cc]
version = "1"