zkmopro/mopro

Move binary scripts to `build.rs`

開放

#357 建立於 2025年3月6日

 (1 則留言) (0 個反應) (0 位負責人)Rust (110 個分叉)auto 404
DevExgood first issue

倉庫指標

星標
 (238 顆星)
PR 合併指標
 (平均合併 1天) (30 天內合併 1 個 PR)

描述

Problem

Now we use CLI to generate bindings for iOS and Android

but if it could be moved to build.rs instead of running cargo run --bin ios It would make the building easier

Details

Ideally we just move the script to mopro-ffi/build.rs and when users activate

[build-dependencies]
mopro-ffi = {version = "0.1", features = ["ios"]}

the current app_config/ios.rs scripts executed and the bindings are generated

Question The current uniffi needs to build first and execute binary after building e.g.

cargo build --release
cargo run --bin uniffi-bindgen generate --library target/release/libmath.so --language kotlin --out-dir out

not sure if it can be executed in the same build script

Acceptance criteria

Run the scripts

貢獻者指南