From 382475657097bb3a54ce2c9bee563bb12658d236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Gonz=C3=A1lez=20Calder=C3=B3n?= Date: Mon, 20 Oct 2025 11:52:30 -0300 Subject: [PATCH 1/4] Remove unused dependencies --- cairo1-run/Cargo.toml | 1 - examples/wasm-demo-cairo1/Cargo.toml | 2 -- 2 files changed, 3 deletions(-) diff --git a/cairo1-run/Cargo.toml b/cairo1-run/Cargo.toml index 74a597c583..183f860969 100644 --- a/cairo1-run/Cargo.toml +++ b/cairo1-run/Cargo.toml @@ -26,7 +26,6 @@ assert_matches = "1.5.0" rstest = "0.17.0" num-traits = { version = "0.2", default-features = false } num-bigint.workspace = true -getrandom = { version = "0.2.16", features = ["js"]} [features] default = ["std"] diff --git a/examples/wasm-demo-cairo1/Cargo.toml b/examples/wasm-demo-cairo1/Cargo.toml index e09463c3af..160d6e8ab4 100644 --- a/examples/wasm-demo-cairo1/Cargo.toml +++ b/examples/wasm-demo-cairo1/Cargo.toml @@ -24,8 +24,6 @@ wasm-bindgen = "0.2.100" # code size when deploying. console_error_panic_hook = { version = "0.1.6", optional = true } -serde_json = { workspace = true } - cairo-lang-sierra = { workspace = true } cairo-vm = { workspace = true } cairo1-run = { path = "../../cairo1-run", default-features = false } From 68461d2884e8ee9fa91eb8adcdb7b2548e4f9b65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Gonz=C3=A1lez=20Calder=C3=B3n?= Date: Mon, 20 Oct 2025 11:55:35 -0300 Subject: [PATCH 2/4] Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a1f56af57..ba069c9663 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ #### Upcoming Changes +* fix: Remove unused dependencies [#2238](https://github.com/lambdaclass/cairo-vm/pull/2238) + * chore: Unify deps makefile target [#2211](https://github.com/lambdaclass/cairo-vm/pull/2211) * Fix bug affecting cairo1 programs with input and System builtin [#2207](https://github.com/lambdaclass/cairo-vm/pull/2207) From cb0f658f699dc30c12e22236bf2813d0fe545c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Gonz=C3=A1lez=20Calder=C3=B3n?= Date: Mon, 20 Oct 2025 12:45:52 -0300 Subject: [PATCH 3/4] Improve changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba069c9663..15c3961446 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ #### Upcoming Changes -* fix: Remove unused dependencies [#2238](https://github.com/lambdaclass/cairo-vm/pull/2238) +* fix: Remove unused dependency getrandom for cairo1-run, and serde_json for wasm-demo-cairo1 [#2238](https://github.com/lambdaclass/cairo-vm/pull/2238) * chore: Unify deps makefile target [#2211](https://github.com/lambdaclass/cairo-vm/pull/2211) From 85c3cd6b0f3954a618946cbdff478f3e3ce0af0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Gonz=C3=A1lez=20Calder=C3=B3n?= Date: Mon, 20 Oct 2025 12:58:24 -0300 Subject: [PATCH 4/4] Rename machete job --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ac44c156a4..5f5348f779 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -198,8 +198,8 @@ jobs: - name: Run clippy run: make clippy - # Check for unnecessary dependencies. - machete: + unused-deps: + name: No unused dependencies runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4