phidget-sys

Crates.iophidget-sys
lib.rsphidget-sys
version0.1.5
created_at2023-04-19 14:01:19.498575+00
updated_at2025-05-01 00:12:00.454326+00
descriptionLow-level, unsafe, Rust wrapper for the phidget22 library.
homepage
repositoryhttps://github.com/fpagliughi/phidget-rs/phidget-sys
max_upload_size
id843573
size707,837
Frank Pagliughi (fpagliughi)

documentation

README

phidget-sys

Low-level unsafe wrpper around the phidget22 library for interacting with Phidget devices.

It was originally created for use with the phidget crate.

This is primarily a set of bindgen-generated bindings of the phidget22.h header file and linkage to the library.

To regenerate bindings, use a recent version of bindgen like this:

$ bindgen --rust-target <MSRV> --no-doc-comments phidget22.h > bindings/phidget22-XX.rs

where: - MSRV is the Minimum Supported Rust version (currently v1.73.0), and - XX is the word size on the platform (64 or 32)

So, to generate 64-bit bindings for the current MSRV:

$ bindgen --rust-target 1.73.0 --no-doc-comments phidget22.h > bindings/phidget22-64.rs
Commit count: 136

cargo fmt