Skip to content

Commit 70246e8

Browse files
authored
Merge pull request #246 from worldfnd/px/wasm
feat: add WASM support for browser-based proof generation
2 parents 4787d07 + 500a634 commit 70246e8

File tree

44 files changed

+4285
-1024
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+4285
-1024
lines changed

.cargo/config.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,16 @@ rustflags = ["-C", "target-feature=+simd128,+relaxed-simd"]
77

88
[target.wasm32-wasip1]
99
runner = "wasmtime run --dir . "
10-
rustflags = ["-C", "target-feature=+simd128,+relaxed-simd"]
10+
rustflags = ["-C", "target-feature=+simd128,+relaxed-simd"]
11+
12+
[target.wasm32-unknown-unknown]
13+
rustflags = [
14+
"-C", "target-feature=+atomics,+bulk-memory,+mutable-globals,+simd128,+relaxed-simd,-reference-types",
15+
"-C", "link-arg=--shared-memory",
16+
"-C", "link-arg=--import-memory",
17+
"-C", "link-arg=--max-memory=4294967296",
18+
"-C", "link-arg=--export=__wasm_init_tls",
19+
"-C", "link-arg=--export=__tls_size",
20+
"-C", "link-arg=--export=__tls_align",
21+
"-C", "link-arg=--export=__tls_base",
22+
]

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
*.json
77
# Allow JSON files in csca_registry
88
!**/csca_registry/**/*.json
9+
# Allow package.json files
10+
!**/package.json
911
*.gz
1012
*.bin
1113
*.nps
@@ -46,6 +48,10 @@ target/
4648
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
4749
#.idea/
4850
circuit_stats_examples/
51+
# Node.js
52+
node_modules/
53+
# wasm packages
54+
tooling/provekit-wasm/pkg/*
4955

5056
# logs for passport circuit benchmarks
51-
noir-examples/noir-passport/merkle_age_check/benchmark-inputs/logs/
57+
noir-examples/noir-passport/merkle_age_check/benchmark-inputs/logs/

0 commit comments

Comments
 (0)