Quick Start
kwui supports Windows
host only, targeting Windows
and Android
.
NOTE:
Linux
andOpenHarmony(OHOS)
support in the future.
Installation
- Install the Rust development environments.
- Install kwui-cli tool.
#![allow(unused)] fn main() { cargo install kwui-cli }
First project
Let's create a hello world project my_proj
:
- Create project from template.
# Creates a new Rust project 'my_proj' under current directory kwui new my_proj cd my_proj
- Build and run.
cargo run
NOTE
kwui is using prebuilt library to accelerate the build process.
If your access to GitHub is difficult or slow, set the environment variable to use a mirror:
KWUI_BINARIES_URL=https://gitee.com/wanghoi/kwui-binaries/releases/download/{tag}/kwui-binaries-{key}.tar.gz KWUI_TEMPLATES_URL=https://gitee.com/wanghoi/kwui-binaries/releases/download/{tag}/kwui-templates-{key}.tar.gz
Porting to Android
- Prepare the Android development environment.
- Build the project for Android.
# Build 'app-debug.apk' kwui build apk
- Install the resulting APK to your phone.
NOTE: only supports
arm64-v8a
abi now.