1 2 3 4 5 6 7 8 9 10 11
//! Checks that a reader holds a DNIe, without sending it any APDU. fn main() { match rdnie::PcscTransport::connect_first_dnie() { Ok(_) => println!("DNIe found"), Err(error) => { eprintln!("{error}"); std::process::exit(1); } } }