From e892c86d238272b39f3b79059554e302a56ac215 Mon Sep 17 00:00:00 2001 From: duguorong009 <80258679+duguorong009@users.noreply.github.com> Date: Fri, 23 Feb 2024 22:17:58 +0800 Subject: [PATCH] fix: reset the changes introduced in `getrandom` import as dep (#286) * build: remove the "resolver=2" option * build: set the "getrandom" as dev-dep for "wasm32-*" target build --- Cargo.toml | 3 +-- halo2_backend/Cargo.toml | 2 +- halo2_common/Cargo.toml | 2 +- halo2_frontend/Cargo.toml | 2 +- halo2_middleware/Cargo.toml | 2 +- halo2_proofs/Cargo.toml | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 39b4e8c24b..ac534b4264 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,5 +6,4 @@ members = [ "halo2_middleware", "halo2_backend", "halo2_common", -] -resolver = "2" \ No newline at end of file +] \ No newline at end of file diff --git a/halo2_backend/Cargo.toml b/halo2_backend/Cargo.toml index e443c953dc..807436a131 100644 --- a/halo2_backend/Cargo.toml +++ b/halo2_backend/Cargo.toml @@ -48,7 +48,7 @@ proptest = "1" rand_core = { version = "0.6", default-features = false, features = ["getrandom"] } serde_json = "1" -[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] +[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies] getrandom = { version = "0.2", features = ["js"] } [features] diff --git a/halo2_common/Cargo.toml b/halo2_common/Cargo.toml index a4442a6423..4f60dbfa11 100644 --- a/halo2_common/Cargo.toml +++ b/halo2_common/Cargo.toml @@ -44,7 +44,7 @@ proptest = "1" rand_core = { version = "0.6", default-features = false, features = ["getrandom"] } serde_json = "1" -[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] +[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies] getrandom = { version = "0.2", features = ["js"] } [features] diff --git a/halo2_frontend/Cargo.toml b/halo2_frontend/Cargo.toml index 9924479feb..6a35d66652 100644 --- a/halo2_frontend/Cargo.toml +++ b/halo2_frontend/Cargo.toml @@ -45,7 +45,7 @@ proptest = "1" rand_core = { version = "0.6", default-features = false, features = ["getrandom"] } serde_json = "1" -[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] +[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies] getrandom = { version = "0.2", features = ["js"] } [features] diff --git a/halo2_middleware/Cargo.toml b/halo2_middleware/Cargo.toml index 575c25dc8a..66ec0b5105 100644 --- a/halo2_middleware/Cargo.toml +++ b/halo2_middleware/Cargo.toml @@ -35,7 +35,7 @@ proptest = "1" group = "0.13" halo2curves = { version = "0.6.0", default-features = false } -[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] +[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies] getrandom = { version = "0.2", features = ["js"] } [lib] diff --git a/halo2_proofs/Cargo.toml b/halo2_proofs/Cargo.toml index 4df38b4187..8bf059790b 100644 --- a/halo2_proofs/Cargo.toml +++ b/halo2_proofs/Cargo.toml @@ -70,7 +70,7 @@ proptest = "1" dhat = "0.3.2" serde_json = "1" -[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] +[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies] getrandom = { version = "0.2", features = ["js"] } [features]