#! /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 echo "Generating includes..." mkdir -p target/include/ rm -rf target/include/* cbindgen --config cbindgen.toml -l C --cpp-compat -o target/include/tun2proxy.h cat > target/include/tun2proxy.modulemap <