Files
feresaria/portal/src/record_main.rs
T

15 lines
476 B
Rust

//! Native recording client. The portal retains capture authorization; encoding
//! and file I/O live in this separate process, never in the shell render loop.
mod recorder;
fn main() {
if let Err(error) = tokio::runtime::Runtime::new().and_then(|runtime| {
runtime
.block_on(recorder::run())
.map_err(std::io::Error::other)
}) {
recorder::event("error", Some(&error.to_string()), None);
std::process::exit(1);
}
}