#![allow(deprecated)]

//! Native Python module for qroissant.

mod client;
mod errors;
mod raw_response;
mod repr;
mod serde;
mod types;
mod values;

use pyo3::prelude::*;
use pyo3::types::PyModule;

#[pymodule]
fn _native(_py: Python<'_>, module: &Bound<'_, PyModule>) -> PyResult<()> {
    module.add("__doc__", "Native qroissant extension")?;
    module.add("__version__", env!("CARGO_PKG_VERSION"))?;
    errors::register(module)?;
    types::register(module)?;
    repr::register(module)?;
    values::register(module)?;
    raw_response::register(module)?;
    client::register(module)?;
    serde::register(module)?;
    Ok(())
}
