mmal-sys
mmal-sys copied to clipboard
Rust declarations for mmal - the Raspberry Pi's GPU and camera library
I was using this via the raspcam crate, but it ended up a little tricky to get things to work because parts of this crate can't be shared across threads....
I had some linking failures while compiling my own code, so I tried the sample code from Issue 6: ``` use std::sync::{Once, ONCE_INIT}; use mmal_sys as ffi; fn main() {...
Basic Rust 2021 compatibility. In particular, this PR fixes the following error that appear under rust-analyzer: ``` error[E0308]: mismatched types --> /workspaces/src/mmal-sys/src/lib.rs:290:35 | 290 | ::std::str::from_utf8(&self.camera_name).unwrap(), | --------------------- ^^^^^^^^^^^^^^^^^ expected...