Browse Source

fix wasm build (#137)

main
Srinath Setty 1 year ago
committed by GitHub
parent
commit
0315bd1198
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions
  1. +4
    -0
      .github/workflows/rust.yml
  2. +2
    -2
      Cargo.toml

+ 4
- 0
.github/workflows/rust.yml

@ -17,8 +17,12 @@ jobs:
run: rustup component add rustfmt run: rustup component add rustfmt
- name: Install clippy - name: Install clippy
run: rustup component add clippy run: rustup component add clippy
- name: Install Wasm target
run: rustup target add wasm32-unknown-unknown
- name: Build - name: Build
run: cargo build --verbose run: cargo build --verbose
- name: Wasm build
run: cargo build --target wasm32-unknown-unknown
- name: Build examples - name: Build examples
run: cargo build --examples --verbose run: cargo build --examples --verbose
- name: Run tests - name: Run tests

+ 2
- 2
Cargo.toml

@ -13,11 +13,11 @@ keywords = ["zkSNARKs", "cryptography", "proofs"]
[dependencies] [dependencies]
bellperson = { version = "0.24", default-features = false } bellperson = { version = "0.24", default-features = false }
ff = { version = "0.12.0", features = ["derive"] } ff = { version = "0.12.0", features = ["derive"] }
merlin = "3.0.0"
merlin = {version = "3.0.0", default-features = false }
digest = "0.8.1" digest = "0.8.1"
sha3 = "0.8.2" sha3 = "0.8.2"
rayon = "1.3.0" rayon = "1.3.0"
rand_core = { version = "0.5", default-features = false }
rand_core = { version = "0.6.0", default-features = false }
rand_chacha = "0.3" rand_chacha = "0.3"
itertools = "0.9.0" itertools = "0.9.0"
subtle = "2.4" subtle = "2.4"

Loading…
Cancel
Save