Skip to content

Commit fd32a53

Browse files
ovitrifclaude
andcommitted
chore: add bindgen.sh and update docs to reference it
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a2b01fb commit fd32a53

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

AGENTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ If anything is missing or cannot be verified, you must fix it before declaring s
199199
- NEVER run binding generation scripts yourself - always ask the user to run them (they are long-running and resource-intensive)
200200

201201
## Bindings Generation Command
202-
To regenerate ALL bindings (Swift, Kotlin, Python), use this command:
202+
To regenerate ALL bindings (Swift, Kotlin, Python), run from the repo root:
203203
```sh
204-
RUSTFLAGS="--cfg no_download" cargo build && ./scripts/uniffi_bindgen_generate.sh && ./scripts/swift_create_xcframework_archive.sh && sh scripts/uniffi_bindgen_generate_kotlin.sh && sh scripts/uniffi_bindgen_generate_kotlin_android.sh
204+
./bindgen.sh
205205
```
206206

207207
## Version Bumping Checklist

bindgen.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
RUSTFLAGS="--cfg no_download" cargo build \
5+
&& ./scripts/uniffi_bindgen_generate.sh \
6+
&& ./scripts/swift_create_xcframework_archive.sh \
7+
&& sh scripts/uniffi_bindgen_generate_kotlin.sh \
8+
&& sh scripts/uniffi_bindgen_generate_kotlin_android.sh

bindings/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Build All Bindings
44
Run in the root dir:
55
```sh
6-
RUSTFLAGS="--cfg no_download" cargo build && ./scripts/uniffi_bindgen_generate.sh && ./scripts/swift_create_xcframework_archive.sh && sh scripts/uniffi_bindgen_generate_kotlin.sh && sh scripts/uniffi_bindgen_generate_kotlin_android.sh
6+
./bindgen.sh
77
```
88

99
---

0 commit comments

Comments
 (0)