mchep/lib.rs
1//! Generate `PyO3` interface for `mchep`
2
3use pyo3::prelude::*;
4
5/// Python bindings for the `vegas` and `vegasplus` crates.
6pub mod vegas;
7
8/// `PyO3` Python module that contains all exposed classes from Rust.
9#[pymodule]
10fn mchep(m: &Bound<'_, PyModule>) -> PyResult<()> {
11 m.add("version", env!("CARGO_PKG_VERSION"))?;
12 vegas::register(m)?;
13 Ok(())
14}