Skip to content

Commit

Permalink
feat: update pyo3 to newest version
Browse files Browse the repository at this point in the history
  • Loading branch information
nephi-dev committed Apr 8, 2024
1 parent 90e4c8f commit 71d3a4f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 30 deletions.
62 changes: 35 additions & 27 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "rxml"
version = "1.0.1"
version = "1.1.0"
edition = "2021"

[lib]
name = "rxml"
crate-type = ["cdylib"]

[dependencies]
pyo3 = "0.20.0"
pyo3 = "0.21.1"
quick-xml = "0.31.0"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mod read;
mod write;

#[pymodule]
fn rxml(_py: Python, m: &PyModule) -> PyResult<()> {
fn rxml(m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add_class::<entities::Node>()?;
m.add_function(wrap_pyfunction!(read::read_file, m)?)?;
m.add_function(wrap_pyfunction!(read::read_string, m)?)?;
Expand Down

0 comments on commit 71d3a4f

Please sign in to comment.