wiringpi-0.2.0 has been yanked.
Visit the last successful build:
wiringpi-0.2.4
#WiringPi Bindings for Rust
An API wrapper for WiringPi to make it accessible using Rust. It implements the most important functions and provides a bit of type system convenience.
Add the following lines to your Cargo.io
to use rust-wiringpi
:
[dependencies]
wiringpi = "0.2"
##Example: Flashing Light
extern crate wiringpi;
use ;
use delay;
##Cross Compiling Using Cargo
This project can be cross compiled using Cargo.
Follow these instructions
And use ./cross64 build
or ./cross32 build
, depending on your system,
to check if everything builds as expected.
##Orange Pi support
rust-wiringpi
can also wrap the WiringOP library for the Orange Pi SBC boards.
This can be enabled with the orangepi
feature:
[dependencies.wiringpi]
verson = "0.2"
features = ["orangepi"]