This is a early version library, everything can break at any moment.
Smartcard-rs
This library is a wrapper for the PC/SC driver. It enables communication between a PC and a smartcard (SC).
How to use this library
Add the crate
In your Cargo.toml:
[]
= "0.2"
In your main.rs or lib.rs:
extern crate smartcard;
Example code
In the main.rs:
extern crate smartcard;
use Context;
use ;
use *;
Supported platform and dependencies
Linux only for now. The library pcsclite and the pcscd deamon are required.
On ubuntu based systems:
sudo apt-get install pcscd libpcsclite1
Optionnally you can install the always useful pcsc-tools package:
sudo apt-get install pcsc-tools
With this tools you can detect your readers with
pcsc_scan
Windows and MacOS are not supported (yet?). PRs welcome.