diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-08 22:43:34 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-08 22:43:34 +0800 |
| commit | 90ed18a41fef137ed0637cf9fc6aa667de2c905f (patch) | |
| tree | d0e472f860ce0c771f4ae47ed35be36aa2df76b7 /scripts/deploy/cbindgen.sh | |
| parent | 62fd90b639a0e24570c558738205d752d2d957bb (diff) | |
Update dependencies and add C bindings generation
Diffstat (limited to 'scripts/deploy/cbindgen.sh')
| -rwxr-xr-x | scripts/deploy/cbindgen.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/deploy/cbindgen.sh b/scripts/deploy/cbindgen.sh new file mode 100755 index 0000000..2be2328 --- /dev/null +++ b/scripts/deploy/cbindgen.sh @@ -0,0 +1,16 @@ +#!/bin/bash +cd "$(dirname "$(readlink -f "$0")")/../.." + +if ! command -v cbindgen &> /dev/null; then + cargo install cbindgen +fi + +rm ffi/.temp/jvlib.h +RUSTUP_TOOLCHAIN=nightly \ +cbindgen \ + --config cbindgen.toml \ + ffi \ + --output ffi/.temp/jvlib.h \ + --quiet + +cd - |
