Rusty Weather is a simple weather application. It's a demo project made by Felgo at the start of our journey with Rust and Slint.
The app was visually based on an existing Felgo project (Weather Pro), but it's not exactly the same, so we could have played with the language features we were interested in.
The project is targeted at both desktops and Android devices.
Set the RUSTY_WEATHER_API_KEY
environment variable to your OpenWeatherMap API key. The OneCall API subscription is required.
-
Build with cargo:
cargo build
-
Run the application binary:
cargo run
To be able to compile the application for Android, the cargo apk crate is required.
-
Provide rust for the android target:
rustup target add aarch64-linux-android
-
Install cargo-apk:
cargo install cargo-apk
-
Build with cargo:
cargo apk build --package rusty-weather --lib
- To build open-ssl for Android, the proper development libraries need to be available on the system, and paths to the NDK binaries available in the file system.
-
Run the application:
cargo apk run --package rusty-weather --lib