hdwallet_service
Hdwallet service
Setup and Tools
- Add Rust build targets
For Android
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
Update tcx
cargo update -p tcx
Generate protobuf type
Install protoc
Download here
dart pub global activate protoc_plugin
protoc --dart_out=./gen *.proto