libfprint-rs 0.1.0

Rust library for accesing fingerprint devices.
docs.rs failed to build libfprint-rs-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: libfprint-rs-0.2.3

LIBFPRINT-RS

This crate provides a wrapper around the native libfprint library.

Dependencies

This package requires libfprint-2 to be installed in your system alongside glib-2, libclang and pkg-config

Usage

Add libfprint-rs as a dependency in Cargo.toml

[dependencies]
libfprint-rs = "0.1.0"

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::device::FpEnrollProgress;
use libfprint_rs::{self, context::FpContext, device::FpDevice, error::GError, print::FpPrint};

fn main() {
    let ctx = FpContext::new();
    let dev = ctx.get_devices().iter().next().unwrap();

    dev.open().unwrap();
}

License

Distributed under the MIT License.