1#[cfg(feature = "python-bindings")]
12use pyo3::prelude::*;
13
14pub mod config;
15pub mod error;
16pub mod utils;
17
18pub use config::RezCoreConfig;
20#[cfg(not(feature = "python-bindings"))]
21pub use error::RezCoreError;
22#[cfg(feature = "python-bindings")]
23pub use error::{PyRezCoreError, RezCoreError};
24
25#[cfg(feature = "python-bindings")]
27#[pymodule]
28pub fn common_module(m: &Bound<'_, PyModule>) -> PyResult<()> {
29 m.add_class::<RezCoreConfig>()?;
31
32 m.add("RezCoreError", m.py().get_type::<PyRezCoreError>())?;
34
35 Ok(())
36}