qmk_via_api/lib.rs
1pub mod api;
2pub mod api_commands;
3pub mod error;
4pub mod keycodes;
5pub mod scan;
6pub mod utils;
7
8#[cfg(feature = "python")]
9use pyo3::prelude::*;
10
11pub use error::*;
12
13#[cfg(feature = "python")]
14#[pymodule]
15fn qmk_via_api(_py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> {
16 m.add_class::<api::KeyboardApi>()?;
17 m.add_class::<scan::KeyboardDeviceInfo>()?;
18 m.add_function(wrap_pyfunction!(scan::scan_keyboards, m)?)?;
19 Ok(())
20}