1 unstable release

0.1.0 Dec 8, 2019

#45 in #low

22 downloads per month

MIT license

5KB

mraa-sys

Generated bindings for Intel's mraa library for low speed device I/O


lib.rs:

A crate with bindings generated by bindgen for the Intel mraa library for low-speed IO communication.

Cross compilation

This package uses pkg_config to find the location of mraa headers and libraries, so by setting the appropriate environment variables, it is possible to cross compile this library for other systems.

Example for cross compiling to BeagleBone:

SYSROOT=/path/to/sysroot
export PKG_CONFIG_SYSROOT_DIR="$SYSROOT"
export PKG_CONFIG_LIBDIR="$SYSROOT/usr/lib/arm-linux-gnueabihf/pkgconfig"
export PKG_CONFIG_ALLOW_CROSS=1
export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
cargo build --target=armv7-unknown-linux-gnueabihf

Dependencies

~0–2MB
~37K SLoC