From b534a5ad28ecaccaae29adbbdecb37964270c1a1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 11:35:30 +0000 Subject: [PATCH] chore(deps): Bump rhai from 1.19.0 to 1.20.0 (#290) Bumps [rhai](https://github.com/rhaiscript/rhai) from 1.19.0 to 1.20.0. - [Release notes](https://github.com/rhaiscript/rhai/releases) - [Changelog](https://github.com/rhaiscript/rhai/blob/main/CHANGELOG.md) - [Commits](https://github.com/rhaiscript/rhai/compare/v1.19.0...v1.20.0) --- updated-dependencies: - dependency-name: rhai dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 25 ++++++++++++++++++++++--- pywr-core/Cargo.toml | 2 +- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index aed6982d..bb18db92 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1979,6 +1979,15 @@ dependencies = [ "rawpointer", ] +[[package]] +name = "no-std-compat" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b93853da6d84c2e3c7d730d6473e8817692dd89be387eb01b94d7f108ecb5b8c" +dependencies = [ + "spin 0.5.2", +] + [[package]] name = "nodrop" version = "0.1.14" @@ -2200,6 +2209,9 @@ name = "once_cell" version = "1.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" +dependencies = [ + "portable-atomic", +] [[package]] name = "oorandom" @@ -3528,13 +3540,14 @@ dependencies = [ [[package]] name = "rhai" -version = "1.19.0" +version = "1.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61797318be89b1a268a018a92a7657096d83f3ecb31418b9e9c16dcbb043b702" +checksum = "8867cfc57aaf2320b60ec0f4d55603ac950ce852e6ab6b9109aa3d626a4dd7ea" dependencies = [ "ahash", "bitflags 2.6.0", "instant", + "no-std-compat", "num-traits 0.2.19", "once_cell", "rhai_codegen", @@ -3564,7 +3577,7 @@ dependencies = [ "cfg-if", "getrandom", "libc", - "spin", + "spin 0.9.8", "untrusted", "windows-sys 0.52.0", ] @@ -4047,6 +4060,12 @@ dependencies = [ "smallvec", ] +[[package]] +name = "spin" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" + [[package]] name = "spin" version = "0.9.8" diff --git a/pywr-core/Cargo.toml b/pywr-core/Cargo.toml index e256035a..6eed966e 100644 --- a/pywr-core/Cargo.toml +++ b/pywr-core/Cargo.toml @@ -31,7 +31,7 @@ chrono = { workspace = true } polars = { workspace = true } pyo3 = { workspace = true, features = ["chrono", "macros"] } rayon = "1.6" -rhai = { version = "1.19", features = ["sync"] } +rhai = { version = "1.20", features = ["sync"] } ocl = { version = "0.19", optional = true } rand = { workspace = true } rand_distr = "0.4"