Skip to content

Latest commit

 

History

History
executable file
·
51 lines (41 loc) · 1.38 KB

README.md

File metadata and controls

executable file
·
51 lines (41 loc) · 1.38 KB

Rust FullStack Web App

Cross-Platform WebAssembly Application

Note

This project is a prototype and a draft for application development with Web Assembly and Rust. So it's not a real application. Also is not ready for production applications yet.

Building

Important

The application was developed and tested on Ubuntu 22.04 LTS and not adapted yet for develop on other operating systems.

Requirements

Technology Link
Rust https://www.rust-lang.org/tools/install
Cargo Make https://crates.io/crates/cargo-make#installation
Android Studio https://developer.android.com/studio
Android SDK API 34 https://developer.android.com/about/versions/11/setup-sdk
Android NDK https://developer.android.com/studio/projects/install-ndk

Prepairing Build Environment

Installing Rust

$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Installing cargo-make

$ cargo install --force cargo-make

Generating standalone NDK toolchain

$ $NDK_HOME/build/tools/make_standalone_toolchain.py --arch arm64 --api 34 --install-dir backend/lib/ndk

Compiling

Run on pc as server

$ cargo make -p production run

or

As part of Android app

$ cargo make -p production build-android

Then start you Android Studio, open backend/android as project and build the Android app.