Command and Event no longer carry voelin-stream's types. voelin-core owns StreamInfo, ViewerInfo, StreamSetup, StreamKind, ViewerState, EndReason and LeaveReason (stream_types.rs) with u16 client ids, a viewer's SRTP profile as its name and its codec as voelin_media::Codec; stream.rs converts at the boundary. Command::SetSrtpProfiles takes profile names, which the stream task parses. EncodedFrame, LayerSpec, LayerId and LayerSet move into voelin-media (stream::EncodedFrame, layer); voelin-stream depends on it and re-exports them, so the engine, the stream sessions and voelinctl share one type. The crate is now a plain dependency of voelin-core (feature media keeps the module and WHIP), and its str0m feature is gone with str0m always there. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
37 lines
1.4 KiB
TOML
37 lines
1.4 KiB
TOML
[package]
|
|
name = "voelin-stream"
|
|
version = "0.1.0"
|
|
description = "TeamSpeak 6 streams: signalling commands, JSON signal messages and WebRTC peers (str0m)."
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
publish.workspace = true
|
|
|
|
[dependencies]
|
|
# DTLS with our SRTP profile order (third_party/dimpl, see its VOELIN-PATCH.md),
|
|
# with the features str0m's aws-lc-rs provider uses.
|
|
dimpl = { version = "0.7.4", default-features = false, features = ["aws-lc-rs", "rcgen"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
# Socket options std lacks: UDP buffer sizes.
|
|
socket2 = "0.6"
|
|
str0m = { version = "0.23.1", default-features = false, features = ["aws-lc-rs"] }
|
|
thiserror = "2"
|
|
tokio = { version = "1", features = ["macros", "net", "rt", "sync", "time"] }
|
|
tracing = "0.1"
|
|
tsclientlib = { path = "../proto/tsclientlib" }
|
|
tsproto-packets = { path = "../proto/tsproto-packets" }
|
|
# The frame and simulcast layer types (`EncodedFrame`, `LayerSpec`), which the
|
|
# media side owns; re-exported here.
|
|
voelin-media = { path = "../voelin-media", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
anyhow = "1"
|
|
futures = "0.3"
|
|
tokio = { version = "1", features = ["io-util", "macros", "net", "process", "rt-multi-thread", "sync", "time"] }
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
[lints]
|
|
workspace = true
|