1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Abstract keyboard types and traits

#![cfg_attr(not(test), no_std)]
#![warn(missing_docs)]
#![feature(never_type)]

extern crate alloc;

#[allow(unused_macros)]
macro_rules! dbg {
    ($($t:tt)*) => ({
        #[cfg(test)]
        {
            std::dbg!($($t)*)
        }
        #[cfg(not(test))]
        {
            $($t)*
        }
    })
}

mod locator;
mod vecmap;

pub mod backlight;
pub mod codec;
pub mod core;
pub mod debounce;
pub mod key;
pub mod keycode;
pub mod led;
pub mod matrix;
pub mod serial;
pub mod stateful;
pub mod translate;

mod channel;

// TODO: Document net stuff
#[allow(missing_docs)]
pub mod net;

// TODO: Document USB stuff
#[allow(missing_docs)]
pub mod usb;