#! /bin/sh echo "Setting up the rust environment..." rustup target add aarch64-apple-ios cargo install cbindgen echo "Building target aarch64-apple-ios..." cargo build --release --target aarch64-apple-ios --features mimalloc echo "Generating includes..." mkdir -p target/include/ rm -rf target/include/* cbindgen --config cbindgen.toml -o target/include/tun2proxy.h cat > target/include/tun2proxy.modulemap <