Update dependencies and fix imports

This commit is contained in:
Franz Dietrich 2024-02-02 20:25:33 +01:00
parent bd637cb97d
commit bf4dbc5ba7
3 changed files with 7 additions and 5 deletions

View File

@ -20,7 +20,7 @@ pki-types = { package = "rustls-pki-types", version = "1.0", features = [
"alloc", "alloc",
] } ] }
tokio-rustls = { version = "0.25" } tokio-rustls = { version = "0.25" }
env_logger = "0.10.1" env_logger = "0.11"
log = "0.4.20" log = "0.4.20"
tokio = { version = "1.34.0", features = ["full", "tracing"] } tokio = { version = "1.34.0", features = ["full", "tracing"] }
webpki-roots = "0.26.0" webpki-roots = "0.26.0"
@ -28,7 +28,10 @@ nom = "7.1.3"
managesieve = { path = "../managesieve" } managesieve = { path = "../managesieve" }
anyhow = "1.0" anyhow = "1.0"
thiserror = "1.0" thiserror = "1.0"
gtk4 = { version = "0.7", features = ["gnome_45", "blueprint"] } gtk = { version = "0.7", package = "gtk4", features = [
"gnome_45",
"blueprint",
] }
serde = { version = "1.0.193", features = ["derive"] } serde = { version = "1.0.193", features = ["derive"] }
libadwaita = { version = "0.5.3", features = ["gtk_v4_10", "v1_4"] } libadwaita = { version = "0.5.3", features = ["gtk_v4_10", "v1_4"] }
gtk-blueprint = "0.2" gtk-blueprint = "0.2"

View File

@ -5,7 +5,6 @@ use gtk::{
prelude::{ApplicationExt, GtkWindowExt}, prelude::{ApplicationExt, GtkWindowExt},
Application, Application,
}; };
use gtk4 as gtk;
use gtk_blueprint::get_blp; use gtk_blueprint::get_blp;
use libadwaita::prelude::{PreferencesGroupExt, PreferencesRowExt}; use libadwaita::prelude::{PreferencesGroupExt, PreferencesRowExt};
use tracing::trace; use tracing::trace;

View File

@ -3,7 +3,7 @@ mod gui;
pub mod protocol; pub mod protocol;
use std::{cell::RefCell, rc::Rc, thread, time::Duration}; use std::{cell::RefCell, rc::Rc, thread, time::Duration};
use gtk4::{glib, prelude::ApplicationExtManual as _}; use gtk::{glib, prelude::ApplicationExtManual as _};
use tracing::{info, trace}; use tracing::{info, trace};
gtk_blueprint::gen_blp_map!("gui"); gtk_blueprint::gen_blp_map!("gui");
@ -16,7 +16,7 @@ fn main() -> glib::ExitCode {
.server_addr(([127, 0, 0, 1], 6669)) .server_addr(([127, 0, 0, 1], 6669))
.init(); .init();
gtk4::init().expect("Failed to initialize GTK"); gtk::init().expect("Failed to initialize GTK");
libadwaita::init().expect("Adwaita initialization failed"); libadwaita::init().expect("Adwaita initialization failed");
let (to_frontent_tx, from_backend_rx) = tokio::sync::mpsc::channel(5); let (to_frontent_tx, from_backend_rx) = tokio::sync::mpsc::channel(5);