#unsafe

sys phidget-sys

Low-level, unsafe, Rust wrapper for the phidget22 library

3 releases

0.1.5 May 1, 2025
0.1.4 Oct 22, 2024
0.1.0 Apr 19, 2023

#1691 in Embedded development

Download history 120/week @ 2025-12-08 155/week @ 2025-12-15 66/week @ 2025-12-22 177/week @ 2025-12-29 71/week @ 2026-01-05 125/week @ 2026-01-12 42/week @ 2026-01-19 115/week @ 2026-01-26 105/week @ 2026-02-02 132/week @ 2026-02-09 148/week @ 2026-02-16 308/week @ 2026-02-23 154/week @ 2026-03-02 187/week @ 2026-03-09 249/week @ 2026-03-16 136/week @ 2026-03-23

729 downloads per month
Used in phidget

MIT license

710KB
22K SLoC

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

No runtime deps