herzfeld 0.1.0-alpha.1

High-fidelity Epigraphic Rendering for Zonated Feature Extraction and Labelled Datasets
Documentation
//! # HERZFELD Core
//!
//! This crate provides the high-performance topographic extraction logic
//! for the HERZFELD epigraphic rendering suite.
//!
//! Developed at Sapienza University of Rome for the study of
//! Middle Persian inscriptions.
use pyo3::prelude::*;

/// Formats the sum of two numbers as string.
#[pyfunction]
fn sum_as_string(a: usize, b: usize) -> PyResult<String> {
    Ok((a + b).to_string())
}

#[pyfunction]
fn check_version() -> String {
    "HERZFELD_CORE_0.1.0_RUST_OK".to_string()
}

/// A Python module implemented in Rust.
#[pymodule]
fn herzfeld(m: &Bound<'_, PyModule>) -> PyResult<()> {
    m.add_function(wrap_pyfunction!(check_version, m)?)?;
    m.add_function(wrap_pyfunction!(sum_as_string, m)?)?;
    Ok(())
}