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