Skip to content

Commit 0ef1364

Browse files
authored
fix(rln): exclude large resource files from crate package (#394)
Exclude tree_depth_10/ resources and all .wasm files from the crates.io package to bring the size under the 10MiB upload limit. The .wasm files are unused by the rln crate (witness calculation uses graph.bin), and tree_depth_10 resources are only needed for testing. Package size: 22.8MiB → 8.5MiB (4.9MiB compressed).
1 parent 7f5b1be commit 0ef1364

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

rln/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ description = "APIs to manage, compute and verify zkSNARK proofs and RLN primiti
77
documentation = "https://github.com/vacp2p/zerokit"
88
homepage = "https://vac.dev"
99
repository = "https://github.com/vacp2p/zerokit"
10+
exclude = [
11+
"resources/tree_depth_10/",
12+
"resources/**/*.wasm",
13+
]
1014

1115
[lib]
1216
crate-type = ["rlib", "staticlib", "cdylib"]

rln/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ and it's used to prevent a RLN ZK proof generated for one application to be re-u
121121
Accelerate proof generation by caching the infrequently-changing portion of the witness,
122122
so only the small message-specific remainder is computed on each proof.
123123
- **Pre-compiled Circuits**: Ready-to-use circuits with Merkle tree depth of 10 and 20.
124+
> **Note:** The crates.io package only includes tree depth 20 resources
125+
> (arkzkey and graph files) that are compiled into the binary at build time.
126+
> Tree depth 10 resources and `.wasm` files are excluded from the package
127+
> to stay within the crates.io size limit.
128+
> If you need tree depth 10 or `.wasm` circuit files,
129+
> download them from the
130+
> [GitHub repository](https://github.com/vacp2p/zerokit/tree/master/rln/resources).
124131
- **Wasm Support**: WebAssembly bindings via rln-wasm crate with features like:
125132
- Browser and Node.js compatibility
126133
- Optional parallel feature support using

0 commit comments

Comments
 (0)