Initialize

This commit is contained in:
2024-09-14 16:33:56 +08:00
commit 3fc4e60c94
6 changed files with 784 additions and 0 deletions

7
src/main.rs Normal file
View File

@@ -0,0 +1,7 @@
pub mod widget;
#[tokio::main]
async fn main() {
println!("Hello, world!");
}

0
src/widget.rs Normal file
View File

16
src/widget/input.rs Normal file
View File

@@ -0,0 +1,16 @@
pub struct Input {
value: String,
}
impl Input {
pub fn new() -> Self {
Self { value: String::new() }
}
pub fn value(&self) -> &str {
&self.value
}
}