Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse Nielsen committed Jul 12, 2024
1 parent e69c737 commit d7e7c89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
license = "GPL-3.0-only"
authors = ["Lasse Nielsen <[email protected]>"]
readme = "README.md"
documentation = "https://docs.rs/shr_parser"
documentation = "https://docs.rs/shr_parser_py"
repository = "https://github.com/Xerrion/shr_parser_py"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -15,5 +15,5 @@ crate-type = ["cdylib"]
name = "shr_parser"

[dependencies]
pyo3 = "0.22.1"
pyo3 = { version = "0.22.1", features = ["extension-module"] }
shr_parser = "1.0.5"
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ fn create_parser(file_path: String, parsing_type: i32) -> PyResult<PySHRParser>

/// A Python module implemented in Rust.
#[pymodule]
fn shr_parser_py(_py: Python, m: &PyModule) -> PyResult<()> {
m.add_class::<PySHRParser>()?;
m.add_function(wrap_pyfunction!(create_parser, m)?)?;
fn my_module(module: &Bound<'_, PyModule>) -> PyResult<()> {
module.add_class::<PySHRParser>()?;
module.add_function(wrap_pyfunction!(create_parser, module)?)?;
Ok(())
}

0 comments on commit d7e7c89

Please sign in to comment.