From ea4093b699110382ae0dbea2b8ef9a79a94eb3a5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 6 Feb 2026 18:45:34 +0000 Subject: [PATCH] build(deps): bump askama from 0.12.1 to 0.15.4 (#7) * build(deps): bump askama from 0.12.1 to 0.15.4 Bumps [askama](https://github.com/askama-rs/askama) from 0.12.1 to 0.15.4. - [Release notes](https://github.com/askama-rs/askama/releases) - [Commits](https://github.com/askama-rs/askama/compare/0.12.1...v0.15.4) --- updated-dependencies: - dependency-name: askama dependency-version: 0.15.4 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * fix(deps): adapt templates and tests for askama 0.15 - Migrate macro calls from {% call %} to {{ }} expression syntax (134 occurrences) - Update test assertion for askama 0.15's numeric HTML entity encoding (& vs &) --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jon Seager --- Cargo.lock | 74 +++++++++---------- Cargo.toml | 2 +- templates/pages/account.html | 8 +- templates/pages/add.html | 8 +- templates/pages/checkin.html | 10 +-- templates/pages/cli_callback.html | 6 +- templates/pages/data.html | 2 +- templates/pages/home.html | 20 ++--- templates/partials/bag_card.html | 4 +- .../partials/forms/scan_result_form.html | 6 +- templates/partials/lists/bag_list.html | 26 +++---- templates/partials/lists/brew_list.html | 18 ++--- templates/partials/lists/cafe_list.html | 28 +++---- templates/partials/lists/cup_list.html | 22 +++--- templates/partials/lists/gear_list.html | 20 ++--- templates/partials/lists/roast_list.html | 18 ++--- templates/partials/lists/roaster_list.html | 24 +++--- templates/partials/location_search.html | 4 +- templates/partials/nav.html | 22 +++--- templates/partials/scan_input.html | 4 +- templates/partials/tab_bar.html | 4 +- templates/partials/timeline_month.html | 8 +- tests/server/timeline.rs | 2 +- 23 files changed, 166 insertions(+), 174 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 284478f..d26636f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -103,46 +103,54 @@ checksum = "5f0e0fee31ef5ed1ba1316088939cea399010ed7731dba877ed44aeb407a75ea" [[package]] name = "askama" -version = "0.12.1" +version = "0.15.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b79091df18a97caea757e28cd2d5fda49c6cd4bd01ddffd7ff01ace0c0ad2c28" +checksum = "08e1676b346cadfec169374f949d7490fd80a24193d37d2afce0c047cf695e57" dependencies = [ - "askama_derive", - "askama_escape", - "humansize", - "num-traits", + "askama_macros", + "itoa", "percent-encoding", + "serde", + "serde_json", ] [[package]] name = "askama_derive" -version = "0.12.5" +version = "0.15.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19fe8d6cb13c4714962c072ea496f3392015f0989b1a2847bb4b2d9effd71d83" +checksum = "7661ff56517787343f376f75db037426facd7c8d3049cef8911f1e75016f3a37" dependencies = [ "askama_parser", "basic-toml", - "mime", - "mime_guess", + "memchr", "proc-macro2", "quote", + "rustc-hash", "serde", + "serde_derive", "syn 2.0.114", ] [[package]] -name = "askama_escape" -version = "0.10.3" +name = "askama_macros" +version = "0.15.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "619743e34b5ba4e9703bba34deac3427c72507c7159f5fd030aea8cac0cfe341" +checksum = "713ee4dbfd1eb719c2dab859465b01fa1d21cb566684614a713a6b7a99a4e47b" +dependencies = [ + "askama_derive", +] [[package]] name = "askama_parser" -version = "0.2.1" +version = "0.15.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acb1161c6b64d1c3d83108213c2a2533a342ac225aabd0bda218278c2ddb00c0" +checksum = "1d62d674238a526418b30c0def480d5beadb9d8964e7f38d635b03bf639c704c" dependencies = [ - "nom", + "rustc-hash", + "serde", + "serde_derive", + "unicode-ident", + "winnow", ] [[package]] @@ -1149,15 +1157,6 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" -[[package]] -name = "humansize" -version = "2.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6cb51c9a029ddc91b07a787f1d86b53ccfa49b0e86688c946ebe8d3555685dd7" -dependencies = [ - "libm", -] - [[package]] name = "hyper" version = "1.8.1" @@ -1543,16 +1542,6 @@ version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" -[[package]] -name = "mime_guess" -version = "2.0.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" -dependencies = [ - "mime", - "unicase", -] - [[package]] name = "minimal-lexical" version = "0.2.1" @@ -3096,12 +3085,6 @@ version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" -[[package]] -name = "unicase" -version = "2.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142" - [[package]] name = "unicode-bidi" version = "0.3.18" @@ -3724,6 +3707,15 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" +[[package]] +name = "winnow" +version = "0.7.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a5364e9d77fcdeeaa6062ced926ee3381faa2ee02d3eb83a5c27a8825540829" +dependencies = [ + "memchr", +] + [[package]] name = "wiremock" version = "0.6.5" diff --git a/Cargo.toml b/Cargo.toml index fc52743..4945f20 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ edition = "2024" anyhow = "1.0" async-trait = "0.1" axum = { version = "0.7", features = ["macros"] } -askama = "0.12" +askama = "0.15" base64 = "0.22" chrono = { version = "0.4", features = ["serde", "clock"] } clap = { version = "4.5", features = ["derive", "env"] } diff --git a/templates/pages/account.html b/templates/pages/account.html index 08a2aee..f8d4b7c 100644 --- a/templates/pages/account.html +++ b/templates/pages/account.html @@ -21,7 +21,7 @@ {% for passkey in passkeys %}
- {% call icons::key("h-4 w-4 text-accent shrink-0") %} + {{ icons::key("h-4 w-4 text-accent shrink-0") }}
{{ passkey.name }} @@ -37,7 +37,7 @@ onclick="deletePasskey({{ passkey.id }}, '{{ passkey.name }}')" aria-label="Delete passkey" > - {% call icons::delete("h-4 w-4") %} + {{ icons::delete("h-4 w-4") }} {% endif %}
@@ -80,7 +80,7 @@
@@ -132,7 +132,7 @@ onclick="revokeToken({{ token.id }}, '{{ token.name }}')" aria-label="Revoke token" > - {% call icons::delete("h-4 w-4") %} + {{ icons::delete("h-4 w-4") }} {% endfor %} diff --git a/templates/pages/add.html b/templates/pages/add.html index dd091a5..d045015 100644 --- a/templates/pages/add.html +++ b/templates/pages/add.html @@ -2,7 +2,7 @@ {% block head %} {% endblock %} @@ -35,7 +35,7 @@ data-on:submit="$_extracting = true; $_extractError = ''; @post('/api/v1/extract-bag-scan', {contentType: 'form'})" data-on:datastar-fetch="if (!$_extracting) return; if (evt.detail.type === 'finished') { $_extracting = false; $_scanExtracted = true; document.getElementById('scan-extract-form').reset() } else if (evt.detail.type === 'error') { $_extracting = false; $_extractError = 'Extraction failed. Please try again.' }" > - {% call scan::scan_input("scan-extract-form", "scan-image", "$_extracting", "$_extractError", "Describe the coffee bag…", "Waiting for response…") %} + {{ scan::scan_input("scan-extract-form", "scan-image", "$_extracting", "$_extractError", "Describe the coffee bag…", "Waiting for response…") }} @@ -427,14 +427,14 @@
- {% call location::location_search("$_cafeError") %} + {{ location::location_search("$_cafeError") }}