Rust Cross-Platform WebAssembly Application
Find a file
2024-05-09 16:14:26 +03:00
.cargo Initial commit 2024-05-08 13:47:48 +03:00
.vscode Initial commit 2024-05-08 13:47:48 +03:00
backend Update mod.rs 2024-05-09 16:14:26 +03:00
common Initial commit 2024-05-08 13:47:48 +03:00
frontend Initial commit 2024-05-08 13:47:48 +03:00
tools Initial commit 2024-05-08 13:47:48 +03:00
.gitignore Initial commit 2024-05-08 13:47:48 +03:00
Cargo.toml Initial commit 2024-05-08 13:47:48 +03:00
LICENSE Initial commit 2024-05-08 13:47:48 +03:00
Makefile.toml Initial commit 2024-05-08 13:47:48 +03:00
README.md Update README.md 2024-05-08 14:08:18 +03:00

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.