A simple cross-platform GUI application built with iced, a Rust GUI library focused on simplicity and type-safety, inspired by Elm.
Cross-platform support: Windows, macOS, Linux, and Web (WASM)
Reactive, type-safe UI programming model
Built-in widgets like buttons and text inputs
Easy to extend with custom widgets
Async actions support with futures
Responsive layout
- Add iced as a dependency in your Cargo.toml:
cargo.toml
[package] name = "inherit" version = "0.1.0" edition = "2021" [dependencies] clipboard = "0.5.0" iced = { version = "0.12.1", features = ["image", "advanced", "svg", "tokio"] } time = "0.3"
- Verify installation:
rustc -v
git clone <repository-url>
cd btc-wallet-iced-appcargo runState: The Counter struct holds the application state (the current count and button states).
Messages: The Message enum represents user interactions (button presses).
Update: The update method modifies the state based on messages.
View: The view method builds the UI and connects buttons to messages.
This pattern follows the Elm architecture, making UI logic clear and type-safe.
iced-app.mp4
This project is licensed under the MIT License.