Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.18 KB

File metadata and controls

42 lines (31 loc) · 1.18 KB

Calculator App Template

This repository contains a template for a simple calculator application built with Rust and Slint, used as part of Rust Workshop.

Purpose

This template is designed for workshop participants to learn the basics of desktop application development with Rust for backend logic and Slint for the UI.

Requirements

  • Rust: Install Rust
  • Cargo: Included with Rust installation
  • Slint: Installable via cargo add slint

Project Structure

  • src/main.rs: Calculator backend logic (implemented in Rust).
  • ui/start_window.slint: User interface (created with Slint).

Features

  • Addition, subtraction, multiplication, and division.

How to Run the Application

  1. Clone this repository:

    git clone https://github.com/cristianaprecup/Rust-Workshop-Desktop-Application.git
    cd Rust-Workshop-Desktop-Application
  2. Install dependencies:

    cargo install slint-viewer
  3. Run the application:

    cargo run

Learning Through Practice

This template serves as a starting point to:

  • Build simple UIs with Slint
  • Implement application logic in Rust