Skip to content

Commit

Permalink
Compile pydive with maturin
Browse files Browse the repository at this point in the history
kvg committed Mar 19, 2024
1 parent ab3104f commit e5ec8a6
Showing 3 changed files with 2,680 additions and 109 deletions.
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
maturin==1.5.0
2,786 changes: 2,678 additions & 108 deletions src/pydive/Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/pydive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ use pyo3::prelude::*;
/// Formats the sum of two numbers as string.
#[pyfunction]
fn add_one(x: i32) -> PyResult<i32> {
Ok(skydive::add_one(x))
Ok(x + 1)
}

/// A Python module implemented in Rust.

0 comments on commit e5ec8a6

Please sign in to comment.