Cleanup deps

This commit is contained in:
Luke D. Jones
2024-05-06 10:58:11 +12:00
parent bc92fa11f9
commit 667697d042
4 changed files with 118 additions and 480 deletions

570
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -13,10 +13,9 @@ edition.workspace = true
#mocking = []
[dependencies]
betrayer = { git = "https://github.com/flukejones/betrayer.git", features = [
"winit",
] }
nix = "^0.26.1"
tempfile = "3.3.0"
betrayer = { version = "0.2.0", features = ["winit"] }
asusd = { path = "../asusd" }
config-traits = { path = "../config-traits" }
@@ -43,27 +42,18 @@ notify-rust.workspace = true
concat-idents.workspace = true
png_pong.workspace = true
versions.workspace = true
nix = "^0.26.1"
tempfile = "3.3.0"
i-slint-backend-selector = { git = "https://github.com/slint-ui/slint.git" }
i-slint-core = { git = "https://github.com/slint-ui/slint.git" }
i-slint-backend-winit = { git = "https://github.com/slint-ui/slint.git" }
winit = "*"
[dependencies.slint]
git = "https://github.com/slint-ui/slint.git"
default-features = false
features = [
"std",
"gettext",
"compat-1-0",
"compat-1-2",
"backend-winit-wayland",
"backend-linuxkms",
"renderer-femtovg",
"renderer-winit-femtovg",
]
[build-dependencies.slint-build]

View File

@@ -123,7 +123,7 @@ async fn main() -> Result<()> {
}
thread_local! { pub static UI: std::cell::RefCell<Option<MainWindow>> = Default::default()};
i_slint_backend_selector::with_platform(|_| Ok(())).unwrap();
// i_slint_backend_selector::with_platform(|_| Ok(())).unwrap();
let mut do_once = !startup_in_background;
@@ -159,7 +159,7 @@ async fn main() -> Result<()> {
sleep(Duration::from_millis(50));
let config_copy = config.clone();
i_slint_core::api::invoke_from_event_loop(move || {
slint::invoke_from_event_loop(move || {
UI.with(|ui| {
let mut ui = ui.borrow_mut();
if let Some(ui) = ui.as_mut() {
@@ -193,7 +193,7 @@ async fn main() -> Result<()> {
}
}
i_slint_core::api::invoke_from_event_loop(move || {
slint::invoke_from_event_loop(move || {
UI.with(|ui| {
let mut ui = ui.take();
if let Some(ui) = ui.borrow_mut() {

View File

@@ -2,7 +2,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2024-05-05 21:32+0000\n"
"POT-Creation-Date: 2024-05-05 22:06+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"