nfc
Rust bindings for the libnfc library.
For raw FFI bindings for libnfc, see nfc-sys.
Installation
Install libnfc (e.g. Debian/Ubuntu, brew install libnfc using Homebrew on Mac OSx, or on other systems).
Cargo.toml
[dependencies]
libc = "0.2.0"
nfc = "0.1.3"
Example Usage
// main.rs
extern crate nfc;
use nfc::version;
fn main() {
println!("libnfc version: {}", version());
}
Implemented/TODO
Library initialization/deinitialization methods:
NFC Device/Hardware manipulation methods:
NFC Initiator methods:
NFC Target methods:
Error Reporting methods:
✓ nfc_strerror -> strerror
✓ nfc_device_get_last_error -> device_get_last_error
Special Data Accessors methods:
Properties Accessors methods:
Miscellaneous methods:
✓ nfc_version -> version
To-string Converters methods:
✓ str_nfc_baud_rate -> str_baud_rate
✓ str_nfc_modulation_type -> str_modulation_type
Contributing
I'm brand new to Rust so any help or constructive information would be really appreciated. Thanks in advance!
License
MIT