17 lines
345 B
Rust
17 lines
345 B
Rust
|
|
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())
|
||
|
|
}
|
||
|
|
}
|