mac-screen-cast 0.2.4

Stream macOS screen to browser over LAN. Zero-copy ScreenCaptureKit, hardware H.264 encoding via VideoToolbox, ~10ms pipeline latency, ~3% CPU.
1
2
3
4
5
6
7
8
9
fn main() {
    // screencapturekit depends on Swift runtime at /usr/lib/swift/
    // Must be set here (not just .cargo/config.toml) because cargo install
    // from crates.io does not carry project-level .cargo/ config.
    let target = std::env::var("TARGET").unwrap();
    if target.contains("-apple-") {
        println!("cargo:rustc-link-arg=-Wl,-rpath,/usr/lib/swift");
    }
}