Sitelet https://github.com/zkmopro/mopro/commit/1de55b76267381a2d1bd46a676938dde0cbe1088
Skip to content

Commit 1de55b7

Browse files
committed
add garaga calldata to circom adapter documentation
1 parent 5a8efe7 commit 1de55b7

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

‎docs/docs/adapters/circom.md‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,16 +337,30 @@ Mopro does not send transactions, manage accounts, estimate fees, or handle nonc
337337

338338
### Enable the feature
339339

340+
The `garaga` feature and optional `garaga_rs` dependency are injected when you initialize a Circom project. Declaring them is not enough — you must turn the feature on for the target you build.
341+
340342
```toml
341343
[features]
342344
default = ["uniffi"]
345+
uniffi = ["mopro-ffi/uniffi"]
346+
flutter = ["mopro-ffi/flutter"]
347+
wasm = ["mopro-ffi/wasm"]
343348
garaga = ["garaga_rs"]
344349

345350
[dependencies]
346351
garaga_rs = { git = "https://github.com/keep-starknet-strange/garaga", tag = "v1.1.0", package = "garaga_rs", optional = true }
347352
```
348353

349-
The `garaga` feature is injected when you initialize a Circom project; enable it in your `Cargo.toml` before building bindings.
354+
Enable it for your bindings target:
355+
356+
- **iOS / Android (UniFFI):** add `garaga` to `default`, e.g. `default = ["uniffi", "garaga"]`.
357+
- **Flutter:** `mopro build` uses `--no-default-features --features flutter`, so `default` is ignored. Wire Garaga into the Flutter feature instead:
358+
359+
```toml
360+
flutter = ["mopro-ffi/flutter", "garaga"]
361+
```
362+
363+
Then rebuild bindings so `generateCircomGroth16GaragaCalldata` is included.
350364

351365
### Prepare verification key
352366

0 commit comments

Comments
 (0)