06e7eea6807f3098d5f146f111b2cebc3c567e16
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
-
Clone the repository:
git clone <repository_url> cd mcalc -
Run with Cargo:
cargo runOr with Dioxus CLI (for hot reloading):
dx serve
Project Structure
src/main.rs: Entry point.src/ui.rs: Main calculator component and logic.assets/main.css: Styling and themes.
License
GPL-3 License
Languages
Rust
66.4%
CSS
33.6%