From 53756720bbbfcf0ab2ae0d8a6286de473eda3912 Mon Sep 17 00:00:00 2001 From: duguorong <80258679+duguorong009@users.noreply.github.com> Date: Fri, 23 Feb 2024 21:15:56 +0800 Subject: [PATCH 1/2] build: remove the "resolver=2" option --- Cargo.toml | 3 +-- 1 file changed, 1 insertion(+), 2 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 From 8f369ba6087525cec838ef4c169dcff055ffbd2d Mon Sep 17 00:00:00 2001 From: duguorong <80258679+duguorong009@users.noreply.github.com> Date: Fri, 23 Feb 2024 21:16:30 +0800 Subject: [PATCH 2/2] build: set the "getrandom" as dev-dep for "wasm32-*" target build --- 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 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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]