Staging and preparing rust with crates
This commit is contained in:
1 parent
7ae91efc30
commit
64152ed991
4 files changed
+5398
No files matched your search
+16
@@ -16,3 +16,19 @@ target/
|
||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||
#.idea/
|
||||
|
||||
|
||||
# Build artifacts
|
||||
/target/
|
||||
|
||||
# Local environment variables and secrets
|
||||
.env
|
||||
.env.*
|
||||
|
||||
# IDE and editor settings
|
||||
.idea/
|
||||
.vscode/
|
||||
|
||||
# OS-generated files
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
Generated
+5350
File diff suppressed because it is too large.
Load diff
+10
@@ -0,0 +1,10 @@
|
||||
[package]
|
||||
name = "moorly"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
iced = "0.14.0"
|
||||
russh = "0.65.0"
|
||||
russh-sftp = "3.0.1"
|
||||
tokio = { version = "1.54.1", features = ["full"] }
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
use iced::widget::text;
|
||||
use iced::{Element, Task};
|
||||
|
||||
fn main() -> iced::Result {
|
||||
iced::application(Moorly::default, update, view)
|
||||
.title("Moorly")
|
||||
.run()
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
struct Moorly;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
enum Message {}
|
||||
|
||||
fn update(_state: &mut Moorly, _message: Message) -> Task<Message> {
|
||||
Task::none()
|
||||
}
|
||||
|
||||
fn view(_state: &Moorly) -> Element<'_, Message> {
|
||||
text("Moorly").into()
|
||||
}
|
||||
Reference in new issue
Block a user