aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2026-06-01 21:21:25 +0200
committerGitHub <noreply@github.com>2026-06-01 21:21:25 +0200
commitf2f2da7c6f062be5c1d1303f15e8172437adf1a4 (patch)
tree04f1a303b8523eda2c518e7d3b8b3aaf60ac148d
parentchore(deps): bump orhun/git-cliff-action from 4.7.1 to 4.8.0 (#252) (diff)
downloadsl0pstatus-f2f2da7c6f062be5c1d1303f15e8172437adf1a4.tar.gz
sl0pstatus-f2f2da7c6f062be5c1d1303f15e8172437adf1a4.tar.xz
sl0pstatus-f2f2da7c6f062be5c1d1303f15e8172437adf1a4.zip
chore(deps): bump cached from 0.59.0 to 1.1.0 (#263)
* chore(deps): bump cached from 0.59.0 to 1.1.0 Bumps [cached](https://github.com/jaemk/cached) from 0.59.0 to 1.1.0. - [Changelog](https://github.com/jaemk/cached/blob/master/CHANGELOG.md) - [Commits](https://github.com/jaemk/cached/commits) --- updated-dependencies: - dependency-name: cached dependency-version: 1.1.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix: breaking changes from cached 1.0 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Daniel Jankowski <daniel.jankowski@rub.de>
-rw-r--r--Cargo.lock13
-rw-r--r--Cargo.toml2
-rw-r--r--src/render.rs14
3 files changed, 14 insertions, 15 deletions
diff --git a/Cargo.lock b/Cargo.lock
index f4c4c5c..bc900aa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -168,15 +168,14 @@ checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
[[package]]
name = "cached"
-version = "0.59.0"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "53b6f5d101f0f6322c8646a45b7c581a673e476329040d97565815c2461dd0c4"
+checksum = "4863037a22757575c62f4f52c71bc833c7989c696c35eda5c83a4f36599b2bbd"
dependencies = [
"ahash",
"cached_proc_macro",
"cached_proc_macro_types",
"hashbrown 0.16.1",
- "once_cell",
"parking_lot",
"thiserror 2.0.18",
"web-time",
@@ -184,9 +183,9 @@ dependencies = [
[[package]]
name = "cached_proc_macro"
-version = "0.27.0"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ebcf9c75f17a17d55d11afc98e46167d4790a263f428891b8705ab2f793eca3"
+checksum = "8b7a89b3ceb2f9166826b0d21b670a8720dbaeb3397428d1c7603e0ffacdfd37"
dependencies = [
"darling",
"proc-macro2",
@@ -196,9 +195,9 @@ dependencies = [
[[package]]
name = "cached_proc_macro_types"
-version = "0.1.1"
+version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ade8366b8bd5ba243f0a58f036cc0ca8a2f069cff1a2351ef1cac6b083e16fc0"
+checksum = "26cf465651fa6ad902a2d327ba60c3a6bc61c6a2f4ad70d091cf20dfda0074ef"
[[package]]
name = "castaway"
diff --git a/Cargo.toml b/Cargo.toml
index a0f2cd2..91c1dcd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -33,7 +33,7 @@ anyhow = "1.0.101"
anstyle = "1.0.13"
uuid = { version = "1.21.0", features = ["v4"] }
lazy_static = "1.5.0"
-cached = { version = "0.59.0", features = ["wasm"] }
+cached = { version = "1.1.0", features = ["wasm"] }
console = "0.16.1"
tracing-subscriber = "0.3.22"
tracing = "0.1.44"
diff --git a/src/render.rs b/src/render.rs
index ff34430..93cfd22 100644
--- a/src/render.rs
+++ b/src/render.rs
@@ -1,4 +1,4 @@
-use cached::{SizedCache, proc_macro::cached};
+use cached::{LruCache, macros::cached};
use lazy_static::lazy_static;
use std::{collections::BTreeMap, sync::Arc};
@@ -40,8 +40,8 @@ pub struct FormattedPart {
}
#[cached(
- ty = "SizedCache<String, FormattedPart>",
- create = "{ SizedCache::with_size(100) }",
+ ty = "LruCache<String, FormattedPart>",
+ create = "{ LruCache::with_size(100) }",
convert = r#"{ (format.to_owned()) }"#
)]
pub fn formatted_part_from_string_cached(
@@ -52,8 +52,8 @@ pub fn formatted_part_from_string_cached(
}
#[cached(
- ty = "SizedCache<String, Vec<FormattedPart>>",
- create = "{ SizedCache::with_size(100) }",
+ ty = "LruCache<String, Vec<FormattedPart>>",
+ create = "{ LruCache::with_size(100) }",
convert = r#"{ (config_string.to_owned()) }"#
)]
pub fn formatted_parts_from_string_cached(
@@ -304,8 +304,8 @@ fn hex_to_rgb(s: &str) -> anyhow::Result<Vec<u8>> {
}
#[cached(
- ty = "SizedCache<String, Option<Color>>",
- create = "{ SizedCache::with_size(100) }",
+ ty = "LruCache<String, Option<Color>>",
+ create = "{ LruCache::with_size(100) }",
convert = r#"{ (color.to_owned()) }"#
)]
fn parse_color(color: &str, config: &BTreeMap<String, String>) -> Option<Color> {