cu-rp-encoder 0.8.0

This is a driver for the Raspberry Pi to decode a directional encoder from GPIOs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use cfg_aliases::cfg_aliases;
fn main() {
    println!(
        "cargo:rustc-env=LOG_INDEX_DIR={}",
        std::env::var("OUT_DIR").unwrap()
    );
    cfg_aliases! {
        hardware: { all(target_os = "linux", not(feature = "mock")) },
        mock: { any(not(target_os = "linux"), feature = "mock") },
    }
}