No description
- Rust 45.5%
- Slint 41.9%
- HTML 12.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .cargo | ||
| .vscode | ||
| src | ||
| ui | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| index.html | ||
| README.md | ||
Tides
Demo app displaying tide data from openwaters.io using the Slint GUI toolkit.
Run the application on desktop
-
Build with
cargo:cargo build -
Run the application binary:
cargo run
Run the application on a web browser
You can then use wasm-pack (which you may need to obtain with cargo install wasm-pack).
This will generate the wasm in the ./pkg directory, which the index.html file will open.
Since wasm files cannot be served from file:// URL, you need to open a wab server to serve
the content
wasm-pack build --release --target web
python3 -m http.server
Run your application on Android
First, set up your Android environment. Then, you can run the demo on an Android device with the following command:
cargo apk run --target aarch64-linux-android --lib