curl https://sh.rustup.rs -sSf | sh
rustup target add aarch64-linux-android arm-linux-androideabi armv7-linux-androideabi i686-linux-android x86_64-linux-android
brew install coreutils
brew install openjdk@11
brew install android-ndk
brew install android-studio
For Non-Macos system: https://developer.android.google.cn/ndk/downloads
export ANDROID_NDK_ROOT=/usr/local/share/android-ndk
export ANDROID_SDK_ROOT=/Users/{username}/Library/Android/sdk
export JAVA_HOME=/usr/local/opt/openjdk@11
export PATH=$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools:$PATH
Create a new project: cargo new my_project --lib Try build:cargo rustc --target arm-linux-androideabi
rustup target add aarch64-apple-ios armv7-apple-ios armv7s-apple-ios i386-apple-ios x86_64-apple-ios
cargo install cargo-lipo
xcode-select --install
xcode-select -s /Applications/Xcode.app/Contents/Developer
xcrun --show-sdk-path -sdk iphoneos