1
0
Files
BallanceTasToolbox/BallanceTasSonnet/src/lib.rs

17 lines
345 B
Rust
Raw Normal View History

2026-01-18 14:56:37 +08:00
use pyo3::prelude::*;
pub(crate) mod utils;
pub(crate) mod tasfile;
/// A Python module implemented in Rust.
#[pymodule]
mod BallanceTasSonnet {
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())
}
}