From 2b680cf166bbda5d2641d0792e60be9970bc92fd Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 26 Sep 2026 15:15:28 +0000 Subject: [PATCH] wip: tsc-ui builds without the media feature Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G --- crates/tsc-ui/src/video.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/tsc-ui/src/video.rs b/crates/tsc-ui/src/video.rs index 6ff5624..528f5fd 100644 --- a/crates/tsc-ui/src/video.rs +++ b/crates/tsc-ui/src/video.rs @@ -7,7 +7,8 @@ pub(crate) use imp::*; -/// Human-readable text for a capture source size. +/// Human-readable text for a picture size. +#[cfg(feature = "media")] fn size_text(width: u32, height: u32) -> String { if width == 0 || height == 0 { String::new() } else { format!("{width}×{height}") } } @@ -442,6 +443,7 @@ mod imp { pub(crate) struct H264Download; + #[allow(dead_code, reason = "the same fields as with video")] pub(crate) struct CaptureRequest { pub fps: u32, pub bitrate_kbps: u32,