Skip to content

Commit

Permalink
Bump rust dependencies
Browse files Browse the repository at this point in the history
+ use new pyo3 module format
  • Loading branch information
Vhou-Atroph committed May 11, 2024
1 parent 5a4f4b4 commit 786de80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ name = "tt_damage_calculator"
crate-type = ["cdylib"]

[dependencies.pyo3]
version = "0.20.3"
version = "0.21.2"
features = ["extension-module"]

[dependencies.serde]
version = "1.0.197"
version = "1.0.201"
features = ["derive"]

[dependencies.tokio]
version = "1.36.0"
version = "1.37.0"
features = ["full"]

[dependencies]
toml = "0.8.12"
reqwest = "0.12.0"
reqwest = "0.12.4"
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::calc::*;
use crate::settings::*;

#[pymodule]
fn tt_damage_calculator(_: Python<'_>, m: &PyModule) -> PyResult<()> {
fn tt_damage_calculator(m: &Bound<'_, PyModule>) -> PyResult<()> {
// Calc
m.add_class::<CalculationResults>()?;
m.add_function(wrap_pyfunction!(cog_hp, m)?)?;
Expand Down

0 comments on commit 786de80

Please sign in to comment.