Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alvaroparker/libfprint-rs
Libfprint library for Rust
https://github.com/alvaroparker/libfprint-rs
fingerprint fingerprint-recognition fingerprint-scanner fingerprint-sensor
Last synced: about 1 month ago
JSON representation
Libfprint library for Rust
- Host: GitHub
- URL: https://github.com/alvaroparker/libfprint-rs
- Owner: AlvaroParker
- License: mit
- Created: 2023-06-20T23:26:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-24T06:02:14.000Z (8 months ago)
- Last Synced: 2024-04-24T12:14:03.905Z (8 months ago)
- Topics: fingerprint, fingerprint-recognition, fingerprint-scanner, fingerprint-sensor
- Language: Rust
- Homepage: https://alvaroparker.github.io/libfprint-docs/libfprint_rs/index.html
- Size: 160 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rust - alvaroparker/libfprint-rs - rs](https://crates.io/crates/libfprint-rs)] - Libfprint-rs provides a wrapper around the Linux libfprint library. (Libraries / Peripherals)
README
# 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 `libclang` and `pkg-config`
## Usage
Add `libfprint-rs` as a dependency in `Cargo.toml`
```toml
[dependencies]
libfprint-rs = "0.2.3"
```Or using `cargo`
```bash
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.
```rust
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();
}```
## License
Distributed under the [MIT License](LICENSE).
### Status
Currently libfprint-rs is WIP.