| Crates.io | libfprint-rs |
| lib.rs | libfprint-rs |
| version | 0.3.1 |
| created_at | 2023-06-20 23:44:57.905374+00 |
| updated_at | 2025-11-04 18:38:47.084271+00 |
| description | Rust library for accesing fingerprint devices. |
| homepage | |
| repository | https://github.com/alvaroparker/libfprint-rs |
| max_upload_size | |
| id | 895573 |
| size | 66,810 |
This crate provides a wrapper around the native libfprint library.
This package requires libfprint-2 to be installed in your system alongside libclang and pkg-config
Add libfprint-rs as a dependency in Cargo.toml
[dependencies]
libfprint-rs = "0.3.1"
Or using cargo
cargo add libfprint-rs
Import the libfprint_rs crate. The starting point for nearly all libfprint-rs functionality is to create a context object. With a context object, you can list devices, open them and execute their functionalities.
use libfprint_rs::FpContext;
fn main() {
let ctx = FpContext::new();
let devices = ctx.devices();
let dev = devices.get(0).unwrap();
dev.open_sync(None).unwrap();
}
Distributed under the MIT License.
Currently libfprint-rs is WIP.