#pcsc #smartcard

sys pcsc-sys

Low-level bindings to the PC/SC C API

8 releases (4 stable)

Uses old Rust 2015

1.2.0 Nov 25, 2019
1.1.0 Sep 3, 2019
1.0.1 Feb 25, 2018
1.0.0 Dec 5, 2017
0.1.0-alpha4 Jan 28, 2017

#481 in Hardware support

Download history 1979/week @ 2022-10-09 1770/week @ 2022-10-16 1797/week @ 2022-10-23 1277/week @ 2022-10-30 1663/week @ 2022-11-06 1821/week @ 2022-11-13 1117/week @ 2022-11-20 1086/week @ 2022-11-27 1062/week @ 2022-12-04 1597/week @ 2022-12-11 1335/week @ 2022-12-18 1368/week @ 2022-12-25 1460/week @ 2023-01-01 1260/week @ 2023-01-08 1050/week @ 2023-01-15 1409/week @ 2023-01-22

5,289 downloads per month
Used in 26 crates (3 directly)

MIT license

21KB
380 lines

Low level bindings to the PCSC C API.

The following platforms are supported:

  • On Windows, the built-in WinSCard.dll library and "Smart Card" service. See MSDN for documentation of the implemented API.

  • On macOS, the built-in PCSC framework.

  • On Linux, BSDs and (hopefully) other systems, the PCSC lite library and pcscd daemon. See pcsclite for documentation of the implemented API.

    pcsclite is detected at build time using pkg-config. See the pkg-config crate for more information.

    If you do not want to use pkg-config, you may instead export the following environment variables when building the crate:

    • PCSC_LIB_DIR: A directory in which to search for a dynamic library implementing the PCSC API.
    • PCSC_LIB_NAME: The name of the library. Defaults to pcsclite.

Dependencies