Initial IronStorage project structure
This commit is contained in:
15
apps/desktop/Cargo.toml
Normal file
15
apps/desktop/Cargo.toml
Normal file
@@ -0,0 +1,15 @@
|
||||
[package]
|
||||
name = "ironstorage-desktop"
|
||||
description = "Iced desktop frontend for IronStorage"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
publish = false
|
||||
|
||||
[[bin]]
|
||||
name = "ironstorage-desktop"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
iced.workspace = true
|
||||
ironstorage.workspace = true
|
||||
23
apps/desktop/src/main.rs
Normal file
23
apps/desktop/src/main.rs
Normal file
@@ -0,0 +1,23 @@
|
||||
#![forbid(unsafe_code)]
|
||||
#![deny(clippy::disallowed_types)]
|
||||
|
||||
use iced::{Element, Length, widget::container, widget::text};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
enum Message {}
|
||||
|
||||
fn main() -> iced::Result {
|
||||
iced::application(|| (), update, view)
|
||||
.title(ironstorage::PRODUCT_NAME)
|
||||
.run()
|
||||
}
|
||||
|
||||
fn update(_: &mut (), message: Message) {
|
||||
match message {}
|
||||
}
|
||||
|
||||
fn view(_: &()) -> Element<'_, Message> {
|
||||
container(text("No password store is open."))
|
||||
.center(Length::Fill)
|
||||
.into()
|
||||
}
|
||||
Reference in New Issue
Block a user