Skip to content

Commit

Permalink
Update PyO3 to 0.21.2
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 684014561
  • Loading branch information
Flax Team committed Oct 9, 2024
1 parent 2ad9731 commit fec3284
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions flaxlib/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flaxlib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ name = "flaxlib"
crate-type = ["cdylib"]

[dependencies]
pyo3 = "0.20.3"
pyo3 = "0.21.2"
2 changes: 1 addition & 1 deletion flaxlib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn sum_as_string(a: usize, b: usize) -> PyResult<String> {

/// A Python module implemented in Rust.
#[pymodule]
fn flaxlib(_py: Python, m: &PyModule) -> PyResult<()> {
fn flaxlib(_py: Python, m: &Bound<PyModule>) -> PyResult<()> {
m.add_function(wrap_pyfunction!(sum_as_string, m)?)?;
Ok(())
}

0 comments on commit fec3284

Please sign in to comment.