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

15 lines
272 B
Rust
Raw Normal View History

2026-01-18 14:56:37 +08:00
use pyo3::prelude::*;
pub(crate) mod wrapped;
2026-01-18 14:56:37 +08:00
#[pymodule]
mod tasfile {
2026-01-18 14:56:37 +08:00
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())
}
}