From 20a68564c60f77a91adf3c7df9d54d460b839e1c Mon Sep 17 00:00:00 2001 From: stefan-gorules <127550877+stefan-gorules@users.noreply.github.com> Date: Thu, 23 Nov 2023 12:04:02 +0100 Subject: [PATCH] fix: update dependencies (#102) * fix: update dependencies * fix updated interface * update toolchains in workflows --- .github/workflows/node.yaml | 2 +- .github/workflows/rust.yaml | 2 +- Cargo.toml | 30 +++++++++++++++--------------- bindings/nodejs/Cargo.toml | 12 ++++++------ bindings/python/Cargo.toml | 14 +++++++------- bindings/python/src/engine.rs | 2 +- core/engine/Cargo.toml | 8 ++++---- core/expression_repl/Cargo.toml | 2 +- 8 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/node.yaml b/.github/workflows/node.yaml index d1165b1a..d69b0602 100644 --- a/.github/workflows/node.yaml +++ b/.github/workflows/node.yaml @@ -107,7 +107,7 @@ jobs: uses: dtolnay/rust-toolchain@stable if: ${{ !matrix.settings.docker }} with: - toolchain: nightly-2023-03-01 + toolchain: stable targets: ${{ matrix.settings.target }} - name: Cache cargo registry diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index d8166bd4..1cf6fab6 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -77,7 +77,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install Rust - run: rustup update nightly && rustup default nightly + run: rustup update - run: cargo bench --workspace miri: diff --git a/Cargo.toml b/Cargo.toml index 14b2eadb..614cc781 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,24 +6,24 @@ members = [ ] [workspace.dependencies] -ahash = "0.8.3" -async-trait = "0.1.68" +ahash = "0.8.6" +async-trait = "0.1.74" bincode = "2.0.0-rc.3" -bumpalo = "3.13.0" -chrono = "0.4.26" +bumpalo = "3.14.0" +chrono = "0.4.31" criterion = "0.5.1" -fastrand = "2.0.0" +fastrand = "2.0.1" humantime = "2.1.0" -once_cell = "1.17.2" +once_cell = "1.18.0" petgraph = "0.6.4" -phf = "0.11.1" -regex = "1.9.1" -regex-lite = "0.1.0" -serde = "1.0.188" -serde_json = "1.0.96" +phf = "0.11.2" +regex = "1.10.2" +regex-lite = "0.1.5" +serde = "1.0.193" +serde_json = "1.0.108" hashbrown = "0.13.2" -rust_decimal = "1.29.1" -rust_decimal_macros = "1.29.1" +rust_decimal = "1.33.1" +rust_decimal_macros = "1.33.1" -anyhow = "1.0.71" -thiserror = "1.0.40" +anyhow = "1.0.75" +thiserror = "1.0.50" diff --git a/bindings/nodejs/Cargo.toml b/bindings/nodejs/Cargo.toml index 661ab65f..7ba5e636 100644 --- a/bindings/nodejs/Cargo.toml +++ b/bindings/nodejs/Cargo.toml @@ -9,13 +9,13 @@ publish = false crate-type = ["cdylib"] [dependencies] -async-trait = "0.1.68" -napi = { version = "2.13.1", features = ["serde-json", "error_anyhow", "tokio_rt"] } -napi-derive = "2.13.0" -serde_json = "1.0.96" -futures = "0.3.28" +async-trait = "0.1.74" +napi = { version = "2.14.1", features = ["serde-json", "error_anyhow", "tokio_rt"] } +napi-derive = "2.14.2" +serde_json = "1.0.108" +futures = "0.3.29" zen-engine = { path = "../../core/engine" } zen-expression = { path = "../../core/expression" } [build-dependencies] -napi-build = "2.0.1" \ No newline at end of file +napi-build = "2.1.0" \ No newline at end of file diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml index 33be038e..d316a0e8 100644 --- a/bindings/python/Cargo.toml +++ b/bindings/python/Cargo.toml @@ -10,12 +10,12 @@ name = "zen" crate-type = ["cdylib"] [dependencies] -async-trait = "0.1.68" -anyhow = "1.0.71" -pyo3 = { version = "0.19.2", features = ["anyhow", "serde"] } -pythonize = "0.19.0" -serde = "1.0.163" -serde_json = "1.0.96" -futures = "0.3.28" +async-trait = "0.1.74" +anyhow = "1.0.75" +pyo3 = { version = "0.20.0", features = ["anyhow", "serde"] } +pythonize = "0.20.0" +serde = "1.0.193" +serde_json = "1.0.108" +futures = "0.3.29" zen-engine = { path = "../../core/engine" } zen-expression = { path = "../../core/expression" } \ No newline at end of file diff --git a/bindings/python/src/engine.rs b/bindings/python/src/engine.rs index 41103563..d0e2b5cd 100644 --- a/bindings/python/src/engine.rs +++ b/bindings/python/src/engine.rs @@ -47,7 +47,7 @@ impl PyZenEngine { return Ok(Default::default()); }; - let Some(loader_any) = options.get_item("loader") else { + let Some(loader_any) = options.get_item("loader")? else { return Ok(Default::default()); }; diff --git a/core/engine/Cargo.toml b/core/engine/Cargo.toml index 1433179c..c414d3a1 100644 --- a/core/engine/Cargo.toml +++ b/core/engine/Cargo.toml @@ -19,14 +19,14 @@ bincode = { workspace = true, optional = true } petgraph = { workspace = true } serde_json = { workspace = true, features = ["arbitrary_precision"] } serde = { workspace = true, features = ["derive"] } -serde_v8 = { version = "0.121.0" } +serde_v8 = { version = "0.141.0" } once_cell = { version = "1.18.0" } -futures = "0.3.28" -v8 = { version = "0.76.0" } +futures = "0.3.29" +v8 = { version = "0.81.0" } zen-expression = { path = "../expression", version = "0.15.0" } [dev-dependencies] -tokio = { version = "1.32.0", features = ["rt", "macros"] } +tokio = { version = "1.34.0", features = ["rt", "macros"] } criterion = { workspace = true, features = ["async_futures"] } [features] diff --git a/core/expression_repl/Cargo.toml b/core/expression_repl/Cargo.toml index caec4314..fd1b1c1a 100644 --- a/core/expression_repl/Cargo.toml +++ b/core/expression_repl/Cargo.toml @@ -9,5 +9,5 @@ publish = false [dependencies] colored = "2.0.4" rustyline = "12.0.0" -serde_json = "1.0.107" +serde_json = "1.0.108" zen-expression = { path = "../expression", version = "0.15.0" }