2025-12-20 13:00:47 +01:00
2025-12-19 18:55:59 +01:00
2025-12-20 13:00:47 +01:00
2025-12-19 18:55:59 +01:00
2025-12-19 18:55:59 +01:00
2025-12-19 18:55:59 +01:00
2025-12-19 18:55:59 +01:00
2025-12-19 18:55:59 +01:00
2025-12-19 17:57:52 +00:00
2025-12-20 13:00:47 +01:00

mcalc - Simple Dioxus Calculator

A simple, modern, and beautiful calculator application built with Rust and Dioxus.

Description

mcalc is a lightweight desktop calculator that demonstrates how to build a clean UI with state management in Dioxus. It features a modern dark mode design with glassmorphism effects and responsiveness.

Features

  • Basic Arithmetic: Addition, Subtraction, Multiplication, Division.
  • Modern UI: Clean typography, glassmorphism card, and neon accents.
  • Interactive: Hover effects and smooth animations.
  • Responsive: Adapts to window resizing.

Tech Stack

  • Rust: Core logic and safety.
  • Dioxus: UI framework (React-like for Rust).
  • CSS3: Custom styling with variables and flexbox/grid.

Getting Started

Prerequisites

  • Rust installed.
  • Dioxus CLI (optional but recommended for development).
cargo install dioxus-cli

Running the App

  1. Clone the repository:

    git clone <repository_url>
    cd mcalc
    
  2. Run with Cargo:

    cargo run
    

    Or with Dioxus CLI (for hot reloading):

    dx serve
    

Project Structure

  • src/main.rs: Entry point.
  • src/ui.rs: Main calculator UI and logic calls.
  • assets/main.css: Styling and themes.
  • src/logic.rs: Calculator logic.

License

GPL-3 License

Description
A simple Rust written Calculator with Dioxus.
Readme GPL-3.0 148 KiB
Languages
Rust 66.4%
CSS 33.6%