Updated project details

This commit is contained in:
2026-08-18 20:56:07 -05:00
parent 168bbd9300
commit 84c79bce65
11 changed files with 4308 additions and 299 deletions
+19 -2
View File
@@ -1,3 +1,20 @@
fn main() {
println!("Hello from Rust skeletal app. Edit src/main.rs to get started!");
use iced::widget::{button, text};
use iced::Element;
pub fn main() -> iced::Result {
iced::run(update, view)
}
fn update(counter: &mut u64, message: Message) {
match message {
Message::Increment => *counter += 1,
}
}
#[derive(Debug, Clone)]
enum Message {
Increment,
}
fn view(counter: &u64) -> Element<'_, Message> {
button(text(counter)).on_press(Message::Increment).into()
}