Tkms dart

Rum mpc on local device.

Setup and Tools

  1. 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
  1. 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

  1. Install libclangdev - sudo apt-get install libclang-dev.

Windows

  1. Install Visual Studio with C++ development support.
  2. Install LLVM or winget install -e --id LLVM.LLVM.

MacOS

  1. Install Xcode.
  2. Install LLVM - brew install llvm.

Build and Test

In the Root of the project simply run:

cd native
cargo make --profile release

Libraries

tkms_dart