build: update deps

without updating, I had an issue with hardware rendering
that made it fall back to slightly stuttery software rendering each time.

no error messages from iced or wgpu,
but I did get the following when running it with mangohud:
shim: Failed to load from "/nix/store/69q712zji0lqph80g6k75z6d3jhbbmb7-mangohud-0.8.4/lib/mangohud/libMangoHud_opengl.so": /nix/store/57iz36553175g3178pvxjij8z5rcsd4n-glibc-2.42-61/lib/libm.so.6: version `GLIBC_2.44' not found (required by /nix/store/69q712zji0lqph80g6k75z6d3jhbbmb7-mangohud-0.8.4/lib/mangohud/libMangoHud_opengl.so)
shim: Failed to load from ${ORIGIN}/libMangoHud_opengl.so: /nix/store/57iz36553175g3178pvxjij8z5rcsd4n-glibc-2.42-61/lib/libm.so.6: version `GLIBC_2.44' not found (required by /nix/store/69q712zji0lqph80g6k75z6d3jhbbmb7-mangohud-0.8.4/lib/mangohud/libMangoHud_opengl.so)
This commit is contained in:
electria 2026-10-07 18:29:35 -07:00
commit 903dd4994c
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs
4 changed files with 790 additions and 965 deletions

1702
Cargo.lock generated

File diff suppressed because it is too large Load diff

23
flake.lock generated
View file

@ -2,11 +2,11 @@
"nodes": {
"crane": {
"locked": {
"lastModified": 1781825982,
"narHash": "sha256-SlXKwIRIhrOSAcTjCB3ftPLzJWZStQIPS7J1FlZPnKk=",
"lastModified": 1790899423,
"narHash": "sha256-THGtz65UGJU+sonZidRboyCMk+9DclpMF7pwL4uDV4M=",
"owner": "ipetkov",
"repo": "crane",
"rev": "469fd08d0bcf6926321fa973c6777fbc87785dd7",
"rev": "47b6b27ed9a3a9181415e4367d0c30ab2a0e0250",
"type": "github"
},
"original": {
@ -35,18 +35,15 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1782175435,
"narHash": "sha256-EMzXKmnOtBQ2MnvpiNOm7E+kOMvdPrIKaeg52Tip2Uk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "89570f24e97e614aa34aa9ab1c927b6578a43775",
"type": "github"
"lastModified": 1791260994,
"narHash": "sha256-MFBjw66d4h06MvpW6lIl7RwarLteD0sk859CncGwb1Q=",
"rev": "151fa4e8ddfdd8dd25d945ad94ed54a13de9f6e4",
"type": "tarball",
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1086391.151fa4e8ddfd/nixexprs.tar.zst?lastModified=1791260994&rev=151fa4e8ddfdd8dd25d945ad94ed54a13de9f6e4"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
"type": "tarball",
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst"
}
},
"root": {

View file

@ -1,6 +1,6 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst";
crane.url = "github:ipetkov/crane";

View file

@ -7,7 +7,7 @@ use std::{
};
use iced::{
Alignment, Color, Element, Length, Renderer, Subscription, Task, Theme, clipboard, event,
Alignment, Color, Length, Renderer, Subscription, Task, Theme, Widget, clipboard, event,
keyboard::{self, Key, key},
theme, widget, window,
};
@ -64,7 +64,7 @@ impl State {
(state, Task::none())
}
fn view(&self) -> Element<'_, Message, Theme, Renderer> {
fn view(&self) -> impl Widget<Message, Theme, Renderer> {
let main = self.image_display.as_ref().map_or_else(
|| {
widget::container(widget::text(include_str!("usage.txt")))
@ -72,7 +72,7 @@ impl State {
.width(Length::Fill)
.align_x(Alignment::Center)
.align_y(Alignment::Center)
.into()
.boxed()
},
|allocation| {
widget::image::viewer(allocation.handle().clone())
@ -81,7 +81,7 @@ impl State {
.min_scale(1.)
.width(Length::Fill)
.height(Length::Fill)
.into()
.boxed()
},
);
@ -91,7 +91,7 @@ impl State {
widget::container(widget::text(error).style(widget::text::danger))
.align_x(Alignment::Start)
.width(Length::Fill)
.into(),
.boxed(),
);
}
if self.infobar_shown && self.info.is_some() {
@ -99,11 +99,11 @@ impl State {
widget::container(widget::text(self.title()))
.align_x(Alignment::End)
.width(Length::Fill)
.into(),
.boxed(),
);
}
widget::column([main, widget::row(bar).into()]).into()
widget::column([main, widget::row(bar).boxed()])
}
fn update(&mut self, message: Message) -> Task<Message> {
match message {