keyfork/crates/qrcode/keyfork-qrcode/src/bin/keyfork-qrcode-scan.rs

15 lines
280 B
Rust

//!
use std::time::Duration;
use keyfork_qrcode::scan_camera;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let output = scan_camera(Duration::from_secs(60 * 10), 0)?;
if let Some(scanned_text) = output {
println!("{scanned_text}");
}
Ok(())
}