r2d2/
lib.rs

1mod bus;
2mod gpio;
3
4use pyo3::prelude::*;
5
6/// An I/O device communication module written in Rust.
7#[pymodule]
8fn r2d2(m: &Bound<'_, PyModule>) -> PyResult<()> {
9    bus::init_pymodule(m)?;
10    m.add_class::<gpio::GPIO>()?;
11    Ok(())
12}