Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
[package]
name = "cap-recording"
version = "0.1.0"
edition = "2024"
[lints]
workspace = true
[features]
default = []
test-utils = []
memory-profiling = ["dep:dhat"]
[dependencies]
cap-audio = { path = "../audio" }
cap-fail = { path = "../fail" }
cap-project = { path = "../project" }
cap-media = { path = "../media" }
cap-rendering = { path = "../rendering" }
cap-flags = { path = "../flags" }
cap-utils = { path = "../utils" }
scap-targets = { path = "../scap-targets" }
cap-cursor-capture = { path = "../cursor-capture" }
cap-media-info = { path = "../media-info" }
cap-cursor-info = { path = "../cursor-info" }
cap-camera = { path = "../camera", features = ["serde", "specta"] }
cap-camera-ffmpeg = { path = "../camera-ffmpeg" }
cap-enc-ffmpeg = { path = "../enc-ffmpeg" }
cap-frame-converter = { path = "../frame-converter" }
cap-timestamp = { path = "../timestamp" }
cap-muxer-protocol = { path = "../cap-muxer-protocol" }
scap-ffmpeg = { path = "../scap-ffmpeg" }
specta = { workspace = true }
tokio = { workspace = true }
flume = { workspace = true }
thiserror = { workspace = true }
ffmpeg = { workspace = true }
serde = { workspace = true }
futures = { workspace = true }
anyhow = { workspace = true }
serde_json = { version = "1", features = ["float_roundtrip"] }
libc = "0.2"
chrono = "0.4.38"
uuid = { version = "1.18.1", features = ["v4"] }
tracing.workspace = true
device_query = "4.0.1"
image = { version = "0.25.2", default-features = false, features = ["rayon", "bmp", "dds", "exr", "ff", "gif", "hdr", "ico", "jpeg", "png", "pnm", "qoi", "tga", "tiff", "webp"] }
either = "1.13.0"
tracing-subscriber = { version = "0.3.19" }
relative-path = "1.9.3"
tokio-util = "0.7.15"
blake3 = "1.8.2"
sha2 = "0.10.9"
hex = "0.4.3"
ringbuf = "0.4.8"
cpal.workspace = true
indexmap = "2.10.0"
kameo = "0.17.2"
inquire = "0.7.5"
replace_with = "0.1.8"
retry = "2.1.0"
sysinfo = "0.35"
parking_lot = "0.12"
dhat = { version = "0.3", optional = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }
[target.'cfg(target_os = "macos")'.dependencies]
cidre = { workspace = true }
screencapturekit = "0.3.5"
cocoa = "0.26.0"
objc = "0.2.7"
objc2 = "0.6"
objc2-app-kit = "0.3.1"
core-graphics = "0.24.0"
core-foundation = "0.10.0"
coreaudio-rs = { version = "0.11.3", features = ["audio_unit"] }
foreign-types-shared = "0.3"
scap-screencapturekit = { path = "../scap-screencapturekit" }
cap-enc-avfoundation = { path = "../enc-avfoundation" }
[target.'cfg(target_os = "windows")'.dependencies]
windows = { workspace = true, features = [
"Win32_Foundation",
"Win32_Graphics_Direct3D",
"Win32_Graphics_Direct3D11",
"Win32_Graphics_Gdi",
"Win32_UI_WindowsAndMessaging",
"Win32_System_Performance",
"Win32_Storage_Xps",
"Win32_Storage_FileSystem",
] }
cap-d3d-adapter = { path = "../d3d-adapter" }
cap-enc-mediafoundation = { path = "../enc-mediafoundation" }
cap-mediafoundation-ffmpeg = { path = "../mediafoundation-ffmpeg" }
cap-mediafoundation-utils = { path = "../mediafoundation-utils" }
cap-camera-windows = { path = "../camera-windows" }
scap-direct3d = { path = "../scap-direct3d" }
scap-cpal = { path = "../scap-cpal" }
[target.'cfg(target_os = "linux")'.dependencies]
ashpd = { version = "0.11.0", default-features = false, features = ["tokio"] }
# Reads screencast DMA-BUFs with GPU-tiled modifiers (niri on NVIDIA). Both
# are already in the tree through wgpu's GL backend; libEGL loads at runtime.
glow = "0.16"
khronos-egl = { version = "6", features = ["dynamic"] }
pipewire = "0.10.0"
x11rb = { version = "0.13.2", features = ["composite", "shm", "xfixes"] }
[dev-dependencies]
tempfile = "3.20.0"
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
clap = { version = "4.5", features = ["derive"] }
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
[target.'cfg(target_os = "macos")'.dev-dependencies]
libproc = "0.14"
[target.'cfg(target_os = "windows")'.dev-dependencies]
windows = { workspace = true, features = ["Win32_UI_HiDpi"] }
[[test]]
name = "synthetic_recording"
required-features = ["test-utils"]
[[example]]
name = "synthetic-test-runner"
required-features = ["test-utils"]
[[example]]
name = "playback-test-runner"
[[example]]
name = "real-device-test-runner"
[[example]]
name = "memory-stress-test"
[[example]]
name = "instant-mode-profile"