`media` uses whatever tsc-media backends are enabled (MediaCodec and a registered capture source on Android); `media-desktop` adds tsc-media's default backends (libvpx, OpenH264, X11, PipeWire). The default features no longer include media, so crates that depend on tsc-core with defaults do not pull libvpx into Android builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
47 lines
1.6 KiB
TOML
47 lines
1.6 KiB
TOML
[package]
|
|
name = "tsc-core"
|
|
version = "0.1.0"
|
|
description = "Client engine: server sessions merging voice, gateway and query sources; the API the UI drives."
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
publish.workspace = true
|
|
|
|
[features]
|
|
default = ["audio-device"]
|
|
# Capture and play audio through the system's devices.
|
|
audio-device = ["tsc-audio/device"]
|
|
# The `media` module: capture and video codecs for streams, with whatever
|
|
# tsc-media backends are enabled (e.g. MediaCodec and a registered capture
|
|
# source on Android).
|
|
media = ["dep:tsc-media"]
|
|
# `media` with tsc-media's desktop backends: libvpx, OpenH264 loaded at
|
|
# runtime, X11 and PipeWire on Linux. Not for Android (libvpx does not
|
|
# cross-compile there).
|
|
media-desktop = ["media", "tsc-media/default"]
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
futures = "0.3"
|
|
serde_json = "1"
|
|
thiserror = "2"
|
|
tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "time"] }
|
|
tokio-tungstenite = "0.30"
|
|
tracing = "0.1"
|
|
tsc-audio = { path = "../tsc-audio", default-features = false }
|
|
tsc-gateway-proto = { path = "../tsc-gateway-proto" }
|
|
tsc-media = { path = "../tsc-media", default-features = false, features = ["str0m"], optional = true }
|
|
tsc-model = { path = "../tsc-model" }
|
|
tsc-observer = { path = "../tsc-observer" }
|
|
tsc-query = { path = "../tsc-query" }
|
|
tsc-stream = { path = "../tsc-stream" }
|
|
tsclientlib = { path = "../proto/tsclientlib" }
|
|
tsproto-packets = { path = "../proto/tsproto-packets" }
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["macros", "rt-multi-thread", "test-util"] }
|
|
|
|
[lints]
|
|
workspace = true
|