write some sonnet code
This commit is contained in:
16
BallanceTasSonnet/src/lib.rs
Normal file
16
BallanceTasSonnet/src/lib.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
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())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user