🦀 Rust support library for semaphore
Go to file
Remco Bloemen 46c340a049 Formatting 2022-02-01 11:41:55 -08:00
snarkfiles proof verification working 2022-02-01 02:31:07 +01:00
src Formatting 2022-02-01 11:41:55 -08:00
.gitignore Add formating rules 2022-02-01 11:40:49 -08:00
Cargo.lock Update deps and build instructions 2022-02-01 11:40:06 -08:00
Cargo.toml Update deps and build instructions 2022-02-01 11:40:06 -08:00
README.md Update deps and build instructions 2022-02-01 11:40:06 -08:00
rustfmt.toml Add formating rules 2022-02-01 11:40:49 -08:00

README.md

README

Native ios library

Setup build environnement

See the instructions from Mozilla.

We will focus only on aarch64 and skip the multi-arch. This means an iPhone 5S or later is required.

xcode-select --install
rustup target add aarch64-apple-ios
xcrun --show-sdk-path --sdk iphoneos

If you get the error xcrun: error: SDK "iphoneos" cannot be located, run sudo xcode-select --switch /Applications/Xcode.app. See here.

Build library

cargo build --release --lib --target aarch64-apple-ios
ls -lah ./target/aarch64-apple-ios/release

Check bloatiness

We can not check the static library directly. Instead we will compile a minimal executable that uses it and check that.

cargo bloat --release --target aarch64-apple-ios --crates -n 30