Skip to content

Commit e52db29

Browse files
committed
Simplify rust module
1 parent 4a32e3b commit e52db29

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

rust/src/lib.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,8 @@ use pyo3::prelude::*;
22

33
mod raw;
44

5-
/// Example function implemented in Rust to demonstrate PyO3 integration.
6-
#[pyfunction]
7-
fn rust_add(a: i64, b: i64) -> PyResult<i64> {
8-
Ok(a + b)
9-
}
10-
11-
/// PyO3 module definition exposed to Python as `wily._rust`.
125
#[pymodule]
136
fn _rust(_py: Python<'_>, module: &Bound<'_, PyModule>) -> PyResult<()> {
14-
module.add_function(wrap_pyfunction!(rust_add, module)?)?;
157
raw::register(module)?;
16-
module.add("__version__", env!("CARGO_PKG_VERSION"))?;
178
Ok(())
189
}

0 commit comments

Comments
 (0)