Skip to main content

max / balanced_breakfast

update deps for eight RUSTSEC advisories ammonia, rustls-webpki, thin-vec, and plist to carry quick-xml forward. Also clear two clippy lints in the supernote command and drop unused serde from bb-core and thiserror from bb-db.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-08-01 21:28 UTC
Signed with PGP, not checked
Commit: 389318c61922ff1febdc7a04c6881065564c0d66
Parent: e7c750c
4 files changed, +17 insertions, -81 deletions
M Cargo.lock +15 -76
@@ -129,14 +129,13 @@
129 129
130 130 [[package]]
131 131 name = "ammonia"
132 - version = "4.1.2"
132 + version = "4.1.4"
133 133 source = "registry+https://github.com/rust-lang/crates.io-index"
134 - checksum = "17e913097e1a2124b46746c980134e8c954bc17a6a59bb3fde96f088d126dde6"
134 + checksum = "dc6d763210e2eb7670d1a5183a08bebefa3f97db2a738a684f2ce00bd49f681d"
135 135 dependencies = [
136 - "cssparser 0.35.0",
137 - "html5ever 0.35.0",
136 + "cssparser 0.37.0",
137 + "html5ever 0.39.0",
138 138 "maplit",
139 - "tendril 0.4.3",
140 139 "url",
141 140 ]
142 141
@@ -512,7 +511,6 @@
512 511 "regex",
513 512 "rhai",
514 513 "roxmltree",
515 - "serde",
516 514 "serde_json",
517 515 "sqlx",
518 516 "thiserror 2.0.18",
@@ -533,7 +531,6 @@
533 531 "serde_json",
534 532 "sqlx",
535 533 "synckit-config",
536 - "thiserror 2.0.18",
537 534 "tokio",
538 535 "tracing",
539 536 "uuid",
@@ -1149,19 +1146,6 @@
1149 1146 "syn 1.0.109",
1150 1147 ]
1151 1148
1152 - [[package]]
1153 - name = "cssparser"
1154 - version = "0.35.0"
1155 - source = "registry+https://github.com/rust-lang/crates.io-index"
1156 - checksum = "4e901edd733a1472f944a45116df3f846f54d37e67e68640ac8bb69689aca2aa"
1157 - dependencies = [
1158 - "cssparser-macros 0.6.1",
1159 - "dtoa-short",
1160 - "itoa 1.0.17",
1161 - "phf 0.11.3",
1162 - "smallvec",
1163 - ]
1164 -
1165 1149 [[package]]
1166 1150 name = "cssparser"
1167 1151 version = "0.37.0"
@@ -1455,7 +1439,7 @@
1455 1439
1456 1440 [[package]]
1457 1441 name = "docengine"
1458 - version = "0.3.5"
1442 + version = "0.4.0"
1459 1443 dependencies = [
1460 1444 "ammonia",
1461 1445 "pulldown-cmark",
@@ -2383,18 +2367,7 @@
2383 2367 "log",
2384 2368 "mac",
2385 2369 "markup5ever 0.14.1",
2386 - "match_token 0.1.0",
2387 - ]
2388 -
2389 - [[package]]
2390 - name = "html5ever"
2391 - version = "0.35.0"
2392 - source = "registry+https://github.com/rust-lang/crates.io-index"
2393 - checksum = "55d958c2f74b664487a2035fe1dadb032c48718a03b63f3ab0b8537db8549ed4"
2394 - dependencies = [
2395 - "log",
2396 - "markup5ever 0.35.0",
2397 - "match_token 0.35.0",
2370 + "match_token",
2398 2371 ]
2399 2372
2400 2373 [[package]]
@@ -3167,17 +3140,6 @@
3167 3140 "tendril 0.4.3",
3168 3141 ]
3169 3142
3170 - [[package]]
3171 - name = "markup5ever"
3172 - version = "0.35.0"
3173 - source = "registry+https://github.com/rust-lang/crates.io-index"
3174 - checksum = "311fe69c934650f8f19652b3946075f0fc41ad8757dbb68f1ca14e7900ecc1c3"
3175 - dependencies = [
3176 - "log",
3177 - "tendril 0.4.3",
3178 - "web_atoms 0.1.3",
3179 - ]
3180 -
3181 3143 [[package]]
3182 3144 name = "markup5ever"
3183 3145 version = "0.39.0"
@@ -3186,7 +3148,7 @@
3186 3148 dependencies = [
3187 3149 "log",
3188 3150 "tendril 0.5.0",
3189 - "web_atoms 0.2.4",
3151 + "web_atoms",
3190 3152 ]
3191 3153
3192 3154 [[package]]
@@ -3200,17 +3162,6 @@
3200 3162 "syn 2.0.114",
3201 3163 ]
3202 3164
3203 - [[package]]
3204 - name = "match_token"
3205 - version = "0.35.0"
3206 - source = "registry+https://github.com/rust-lang/crates.io-index"
3207 - checksum = "ac84fd3f360fcc43dc5f5d186f02a94192761a080e8bc58621ad4d12296a58cf"
3208 - dependencies = [
3209 - "proc-macro2",
3210 - "quote",
3211 - "syn 2.0.114",
3212 - ]
3213 -
3214 3165 [[package]]
3215 3166 name = "matchers"
3216 3167 version = "0.2.0"
@@ -4156,9 +4107,9 @@
4156 4107
4157 4108 [[package]]
4158 4109 name = "plist"
4159 - version = "1.8.0"
4110 + version = "1.10.0"
4160 4111 source = "registry+https://github.com/rust-lang/crates.io-index"
4161 - checksum = "740ebea15c5d1428f910cd1a5f52cebf8d25006245ed8ade92702f4943d91e07"
4112 + checksum = "7da1d65da6dd5d1e44199ac0f58712d241c0f439f80adea8924d832384087f85"
4162 4113 dependencies = [
4163 4114 "base64 0.22.1",
4164 4115 "indexmap 2.14.0",
@@ -4394,9 +4345,9 @@
4394 4345
4395 4346 [[package]]
4396 4347 name = "quick-xml"
4397 - version = "0.38.4"
4348 + version = "0.41.0"
4398 4349 source = "registry+https://github.com/rust-lang/crates.io-index"
4399 - checksum = "b66c2058c55a409d601666cffe35f04333cf1013010882cec174a7467cd4e21c"
4350 + checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1"
4400 4351 dependencies = [
4401 4352 "memchr",
4402 4353 ]
@@ -4873,9 +4824,9 @@
4873 4824
4874 4825 [[package]]
4875 4826 name = "rustls-webpki"
4876 - version = "0.103.10"
4827 + version = "0.103.13"
4877 4828 source = "registry+https://github.com/rust-lang/crates.io-index"
4878 - checksum = "df33b2b81ac578cabaf06b89b0631153a3f416b0a886e8a7a1707fb51abbd1ef"
4829 + checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
4879 4830 dependencies = [
4880 4831 "ring",
4881 4832 "rustls-pki-types",
@@ -6402,9 +6353,9 @@
6402 6353
6403 6354 [[package]]
6404 6355 name = "thin-vec"
6405 - version = "0.2.14"
6356 + version = "0.2.19"
6406 6357 source = "registry+https://github.com/rust-lang/crates.io-index"
6407 - checksum = "144f754d318415ac792f9d69fc87abbbfc043ce2ef041c60f16ad828f638717d"
6358 + checksum = "79def32ffcd477db1ff26f76dab9e3a91f0bd42a85ca96577089b24623056f9d"
6408 6359 dependencies = [
6409 6360 "serde",
6410 6361 ]
@@ -7253,18 +7204,6 @@
7253 7204 "wasm-bindgen",
7254 7205 ]
7255 7206
7256 - [[package]]
7257 - name = "web_atoms"
7258 - version = "0.1.3"
7259 - source = "registry+https://github.com/rust-lang/crates.io-index"
7260 - checksum = "57ffde1dc01240bdf9992e3205668b235e59421fd085e8a317ed98da0178d414"
7261 - dependencies = [
7262 - "phf 0.11.3",
7263 - "phf_codegen 0.11.3",
7264 - "string_cache 0.8.9",
7265 - "string_cache_codegen 0.5.4",
7266 - ]
7267 -
7268 7207 [[package]]
7269 7208 name = "web_atoms"
7270 7209 version = "0.2.4"
@@ -13,7 +13,6 @@
13 13 tokio.workspace = true
14 14 thiserror.workspace = true
15 15 tracing.workspace = true
16 - serde.workspace = true
17 16 serde_json.workspace = true
18 17 chrono.workspace = true
19 18
@@ -10,7 +10,6 @@
10 10 sqlx.workspace = true
11 11 synckit-config.workspace = true
12 12 tokio.workspace = true
13 - thiserror.workspace = true
14 13 tracing.workspace = true
15 14 chrono.workspace = true
16 15 uuid.workspace = true
@@ -42,8 +42,7 @@
42 42 /// characters qualifies. Short bodies (bare HN titles, RSS-summary blurbs)
43 43 /// aren't worth a page turn.
44 44 pub fn is_eligible(body: Option<&str>) -> bool {
45 - body.map(|b| b.trim().chars().count() >= MIN_BODY_CHARS)
46 - .unwrap_or(false)
45 + body.is_some_and(|b| b.trim().chars().count() >= MIN_BODY_CHARS)
47 46 }
48 47
49 48 fn load(data_dir: &Path) -> Result<SupernoteFile, ApiError> {
@@ -73,7 +72,7 @@
73 72 .items()
74 73 .get(item_id)
75 74 .await?
76 - .ok_or_else(|| ApiError::not_found(format!("Item {} not found", id)))?;
75 + .ok_or_else(|| ApiError::not_found(format!("Item {id} not found")))?;
77 76
78 77 let body = item
79 78 .body