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.
2024-02-29 22:22:44 +01:00
|
|
|
use pyo3::prelude::*;
|
|
|
|
|
2024-03-01 20:15:16 +01:00
|
|
|
mod printing;
|
|
|
|
|
2024-02-29 22:22:44 +01:00
|
|
|
/// implement a python module in Rust
|
2024-03-01 20:15:16 +01:00
|
|
|
pub fn submodule(py: Python, parent: &PyModule) -> PyResult<()> {
|
|
|
|
let module = PyModule::new(py, "core")?;
|
|
|
|
printing::submodule(py, module)?;
|
|
|
|
parent.add_submodule(module)?;
|
2024-02-29 22:22:44 +01:00
|
|
|
Ok(())
|
|
|
|
}
|