When compile a big circuit (e.g. Anon Aadhaar), it might take ~100 minutes to build for the one target
And it will be 3 targets for iOS (device, simulator, x86 simulator)
and 4 targets for Android (x86_64-linux-android, i686-linux-android, armv7-linux-androideabi, aarch64-linux-android)
Even if we don't build them all, it still takes too much time.
Details
It stucks here: rust-witness/transpile.rs
when running cargo build or cargo run (because it is executed in build.rs)
And the detail in Activity Monitor looks like
Problem
When compile a big circuit (e.g. Anon Aadhaar), it might take ~100 minutes to build for the one target And it will be 3 targets for iOS (device, simulator, x86 simulator) and 4 targets for Android (x86_64-linux-android, i686-linux-android, armv7-linux-androideabi, aarch64-linux-android) Even if we don't build them all, it still takes too much time.
Details
It stucks here: rust-witness/transpile.rs when running
cargo build
orcargo run
(because it is executed inbuild.rs
) And the detail in Activity Monitor looks likeAcceptance criteria
Should find a way to speed up this compile or we can just use the binary instead of compiling them all the time.