Skip to content

A Rust and Slint demo app created for Oxidize Conference Berlin

License

Notifications You must be signed in to change notification settings

FelgoSDK/RustyWeather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rusty Weather

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.

Usage

Set the RUSTY_WEATHER_API_KEY environment variable to your OpenWeatherMap API key. The OneCall API subscription is required.

Compiling on desktop

  1. Build with cargo:

    cargo build
    
  2. Run the application binary:

    cargo run
    

Compiling on Android

To be able to compile the application for Android, the cargo apk crate is required.

  1. Provide rust for the android target:

    rustup target add aarch64-linux-android
    
  2. Install cargo-apk:

    cargo install cargo-apk
    
  3. 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.
  4. Run the application:

    cargo apk run --package rusty-weather --lib
    

About

A Rust and Slint demo app created for Oxidize Conference Berlin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published