This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
pt/members/libpt-py/src/core/mod.rs
PlexSheep 10ec77aef0
All checks were successful
cargo devel CI / cargo CI (push) Successful in 4m59s
python interface for core and logging
2024-03-01 20:15:16 +01:00

11 lines
273 B
Rust

use pyo3::prelude::*;
mod printing;
/// implement a python module in Rust
pub fn submodule(py: Python, parent: &PyModule) -> PyResult<()> {
let module = PyModule::new(py, "core")?;
printing::submodule(py, module)?;
parent.add_submodule(module)?;
Ok(())
}