nfc1 0.7.1

High-level safe Rust bindings for libnfc.
Documentation
1
2
3
4
5
6
7
8
9
10
11
type BoxError = Box<dyn std::error::Error + Send + Sync>;
type BoxResult<T> = Result<T, BoxError>;

fn main() -> BoxResult<()> {
	let mut context = nfc1::Context::new()?;
	let devices = context.list_devices(10)?;
	for device in &devices {
		println!("{}", device)
	}
	Ok(())
}