Tkms dart
Rum mpc on local device.
Setup and Tools
- Add Rust build targets
For Android
Set env
export ANDROID_NDK_HOME=/Users/js/Library/Android/sdk/ndk/22.1.7171670
Install targets
rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android
For iOS
rustup target add aarch64-apple-ios x86_64-apple-ios
- Cargo Plugins
cargo install --no-default-features --force cargo-make
we also use dart-bindgen which requires LLVM/Clang. Install LLVM (10+) in the following way:
ubuntu/linux
- Install libclangdev -
sudo apt-get install libclang-dev.
Windows
- Install Visual Studio with C++ development support.
- Install LLVM or
winget install -e --id LLVM.LLVM.
MacOS
- Install Xcode.
- Install LLVM -
brew install llvm.
Build and Test
In the Root of the project simply run:
cd native
cargo make --profile release