From 1aee11daca52c3474982e5ba17c42bc523e28f3e Mon Sep 17 00:00:00 2001 From: Miika Alikirri Date: Fri, 27 Jan 2023 20:54:04 +0200 Subject: [PATCH] Update depedencies --- Cargo.lock | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 4 ++++ 2 files changed, 55 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index c72d095..2b4e750 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -224,6 +224,12 @@ dependencies = [ "syn", ] +[[package]] +name = "byteorder" +version = "1.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" + [[package]] name = "bytes" version = "1.3.0" @@ -352,6 +358,12 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "color_quant" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" + [[package]] name = "combine" version = "4.6.6" @@ -716,6 +728,16 @@ dependencies = [ "winit", ] +[[package]] +name = "egui_extras" +version = "0.20.0" +source = "git+https://github.com/Nykseli/egui#882a7c8001f0b79bbd8f662980f6000d5df31125" +dependencies = [ + "egui", + "image", + "serde", +] + [[package]] name = "egui_glow" version = "0.20.1" @@ -1202,6 +1224,20 @@ dependencies = [ "unicode-normalization", ] +[[package]] +name = "image" +version = "0.24.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69b7ea949b537b0fd0af141fff8c77690f2ce96f4f41f042ccb6c69c6c965945" +dependencies = [ + "bytemuck", + "byteorder", + "color_quant", + "num-rational", + "num-traits", + "png", +] + [[package]] name = "indexmap" version = "1.9.2" @@ -1534,6 +1570,17 @@ dependencies = [ "num-traits", ] +[[package]] +name = "num-rational" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + [[package]] name = "num-traits" version = "0.2.15" @@ -2933,14 +2980,18 @@ checksum = "d2d7d3948613f75c98fd9328cfdcc45acc4d360655289d0a7d4ec931392200a3" name = "yle-tekstitv-gui" version = "0.1.0" dependencies = [ + "base64 0.21.0", "chrono", "console_error_panic_hook", "eframe", "egui", + "egui_extras", "html-escape", + "image", "log", "reqwest", "serde", + "serde_json", "tracing-subscriber", "tracing-wasm", "wasm-bindgen-futures", diff --git a/Cargo.toml b/Cargo.toml index 4e5f2af..347ce17 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,8 @@ edition = "2018" winit = { git = "https://github.com/Nykseli/winit", branch = "windows-mouse-fix" } [dependencies] +base64 = "0.21.0" +serde_json = "1.0" log = "0.4.17" chrono = "0.4.23" reqwest = { version = "0.11.13", features = ["blocking"]} @@ -21,6 +23,8 @@ eframe = { git = "https://github.com/Nykseli/egui", default-features = false, fe "glow", # Use the glow rendering backend. Alternative: "wgpu". "persistence", # Enable restoring app state when restarting the app. ] } +egui_extras = { git = "https://github.com/Nykseli/egui", features = ["image"] } +image = { version = "0.24", default-features = false, features = ["png"] } # You only need serde if you want app persistence: serde = { version = "1", features = ["derive"] }