Update Rust crate askama to 0.15.0 #448

Merged
renovate merged 1 commits from renovate/askama-0.x into master 2025-12-24 00:27:23 +00:00
Collaborator

This PR contains the following updates:

Package Type Update Change
askama (source) dependencies minor 0.14.00.15.0

Release Notes

askama-rs/askama (askama)

v0.15.0

Compare Source

The main breaking change is about custom filters, they now require the filter_fn attribute. More information about it in the askama book.

( = breaking change)

New features

Major internal changes

Improve error location to give better errors:

Other

Book/documentation

Internal changes

Performance

Bugfixes

New Contributors

Full Changelog: https://github.com/askama-rs/askama/compare/v0.14.0...v0.15.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [askama](https://askama.readthedocs.io/) ([source](https://github.com/askama-rs/askama)) | dependencies | minor | `0.14.0` → `0.15.0` | --- ### Release Notes <details> <summary>askama-rs/askama (askama)</summary> ### [`v0.15.0`](https://github.com/askama-rs/askama/releases/tag/v0.15.0) [Compare Source](https://github.com/askama-rs/askama/compare/v0.14.0...v0.15.0) The main breaking change is about custom filters, they now require the `filter_fn` attribute. More information about it in [the askama book](https://askama.readthedocs.io/en/v0.15.0/filters.html#custom-filters). (❗ = breaking change) #### New features - ❗ add caller pattern from jinja❗ by [@&#8203;pollend](https://github.com/pollend) in [#&#8203;422](https://github.com/askama-rs/askama/pull/422) - ❗Add new `reject` filter❗ by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;430](https://github.com/askama-rs/askama/pull/430) - ❗Treat caller() as variable with support for aliasing❗ by [@&#8203;seijikun](https://github.com/seijikun) in [#&#8203;510](https://github.com/askama-rs/askama/pull/510) - ❗Add filters `|default`, `|assigned_or` and `|defined_or`❗ by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;425](https://github.com/askama-rs/askama/pull/425) - ❗Update minimum supported rust version to 1.88❗ by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;523](https://github.com/askama-rs/askama/pull/523) - ❗Add `askama::filter_fn` proc-macro for custom filters with named/optional arg support❗ by [@&#8203;seijikun](https://github.com/seijikun) in [#&#8203;545](https://github.com/askama-rs/askama/pull/545) - Implement `enum` variants by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;255](https://github.com/askama-rs/askama/pull/255) - Allow filters with explicit path by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;435](https://github.com/askama-rs/askama/pull/435) - Add support for mutable variables by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;462](https://github.com/askama-rs/askama/pull/462) - Add support for macro default value generics by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;522](https://github.com/askama-rs/askama/pull/522) - Add support for expression-call syntax for macros by [@&#8203;seijikun](https://github.com/seijikun) in [#&#8203;518](https://github.com/askama-rs/askama/pull/518) - Implement [#&#8203;531](https://github.com/askama-rs/askama/issues/531): Allow named arguments in call expr macro invocations by [@&#8203;seijikun](https://github.com/seijikun) in [#&#8203;533](https://github.com/askama-rs/askama/pull/533) - Add support for array repeat syntax: `[<element_expr>; <cnt_expr>]` by [@&#8203;seijikun](https://github.com/seijikun) in [#&#8203;626](https://github.com/askama-rs/askama/pull/626) - Add support for struct expressions by [@&#8203;VojtaStanek](https://github.com/VojtaStanek) in [#&#8203;602](https://github.com/askama-rs/askama/pull/602) - format non base 10 numbers at compile time by [@&#8203;tdelabro](https://github.com/tdelabro) in [#&#8203;620](https://github.com/askama-rs/askama/pull/620) - Add new tag to declare variable without value by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;613](https://github.com/askama-rs/askama/pull/613) #### Major internal changes Improve error location to give better errors: - Greatly improve error messages on nightly by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;525](https://github.com/askama-rs/askama/pull/525) - Generate a `TokenStream` rather than a `String` by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;558](https://github.com/askama-rs/askama/pull/558) - parser: use `LocatingSlice<&str>` instead of `&str` by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;560](https://github.com/askama-rs/askama/pull/560) - Use `Parser::[with_]span()` to get byte range and use byte range for `proc_macro::Span` by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;571](https://github.com/askama-rs/askama/pull/571) #### Other - ❗ `filesizeformat` with proper accuracy❗ by [@&#8203;seijikun](https://github.com/seijikun) in [#&#8203;568](https://github.com/askama-rs/askama/pull/568) - Filters `linebreaks`, `paragraphbreaks` and `linebreaksbr` only need `core` by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;486](https://github.com/askama-rs/askama/pull/486) - Emit an error if an extends block doesn't come first in a template by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;584](https://github.com/askama-rs/askama/pull/584) #### Book/documentation - Fix tiny wording error in "Calling functions" docs by [@&#8203;m4tx](https://github.com/m4tx) in [#&#8203;423](https://github.com/askama-rs/askama/pull/423) - book: complete note about filter change by [@&#8203;martinetd](https://github.com/martinetd) in [#&#8203;453](https://github.com/askama-rs/askama/pull/453) - Update `ref` documentation by [@&#8203;sinder38](https://github.com/sinder38) in [#&#8203;456](https://github.com/askama-rs/askama/pull/456) - Update `performance.md` by [@&#8203;zamazan4ik](https://github.com/zamazan4ik) in [#&#8203;188](https://github.com/askama-rs/askama/pull/188) - book: document all crates on readthedocs by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;473](https://github.com/askama-rs/askama/pull/473) - Fixed typos in template syntax book docs in [#&#8203;494](https://github.com/askama-rs/askama/pull/494) - book: update `mdbook` version and highlight `jinja` blocks by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;544](https://github.com/askama-rs/askama/pull/544) - Improve documentation by [@&#8203;seijikun](https://github.com/seijikun) in [#&#8203;554](https://github.com/askama-rs/askama/pull/554) - Minor documentation fixes by [@&#8203;seijikun](https://github.com/seijikun) in [#&#8203;555](https://github.com/askama-rs/askama/pull/555) - Fix some code examples annotations by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;577](https://github.com/askama-rs/askama/pull/577) - Add missing documentation about for loop features by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;576](https://github.com/askama-rs/askama/pull/576) - book: add question mark operator by [@&#8203;VojtaStanek](https://github.com/VojtaStanek) in [#&#8203;601](https://github.com/askama-rs/askama/pull/601) - book: add syntax summary by [@&#8203;VojtaStanek](https://github.com/VojtaStanek) in [#&#8203;603](https://github.com/askama-rs/askama/pull/603) - book: fix rust-docs on readthedocs by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;528](https://github.com/askama-rs/askama/pull/528) #### Internal changes - Add tests for jinja examples in our book by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;574](https://github.com/askama-rs/askama/pull/574) - Make code generator re-usable for other projects by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;434](https://github.com/askama-rs/askama/pull/434) - parser: simplify `{# comment #}` parsing by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;488](https://github.com/askama-rs/askama/pull/488) - Rename `Expr::Attr` into `Expr::AssociatedItem` by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;499](https://github.com/askama-rs/askama/pull/499) - parser: introduce more types for `Expr` variants by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;498](https://github.com/askama-rs/askama/pull/498) - parser: refactor `|filter` and `{% filter %}` parsing by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;500](https://github.com/askama-rs/askama/pull/500) - Use `if-let-chains` by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;527](https://github.com/askama-rs/askama/pull/527) - derive: more `if-let` by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;532](https://github.com/askama-rs/askama/pull/532) - derive: dedupe visit custom filters code by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;470](https://github.com/askama-rs/askama/pull/470) #### Performance - Add missing `#[inline]` annotations by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;421](https://github.com/askama-rs/askama/pull/421) - parser: un-inline error message generation by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;501](https://github.com/askama-rs/askama/pull/501) - Refactor `indent` Filter Implementation by [@&#8203;strickczq](https://github.com/strickczq) in [#&#8203;466](https://github.com/askama-rs/askama/pull/466) - Make `wordcount` filter work with core only by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;480](https://github.com/askama-rs/askama/pull/480) - derive: un-inline `Expr::Call` handling for `{{ expressions }}` and remove parentheses by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;540](https://github.com/askama-rs/askama/pull/540) - parser/derive: replaces usages of `Expr`/`Node` with `Box<Expr>`/`Box<Node>` by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;542](https://github.com/askama-rs/askama/pull/542) - parser: remove one indirection in `punction()` finding by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;543](https://github.com/askama-rs/askama/pull/543) - filter\_fn: Aggressive inlining for builder invocation methods by [@&#8203;seijikun](https://github.com/seijikun) in [#&#8203;616](https://github.com/askama-rs/askama/pull/616) - `loop.first` is known by being at `index == 0` by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;436](https://github.com/askama-rs/askama/pull/436) #### Bugfixes - generator: remove invisible group from output by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;419](https://github.com/askama-rs/askama/pull/419) - Relax Sized constraint on `impl FastWritable for Cow` by [@&#8203;C0D3-M4513R](https://github.com/C0D3-M4513R) in [#&#8203;432](https://github.com/askama-rs/askama/pull/432) - Ignore fuzzing corpus from source line count by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;433](https://github.com/askama-rs/askama/pull/433) - Use `unicode-ident` to determine what is an identifier by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;443](https://github.com/askama-rs/askama/pull/443) - derive: prefix more generated variables with `__askama` by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;444](https://github.com/askama-rs/askama/pull/444) - derive: don't suppress fatal errors in integer parsing by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;448](https://github.com/askama-rs/askama/pull/448) - Print invalid generated code during panic by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;446](https://github.com/askama-rs/askama/pull/446) - Prevent `crate` to be used as identifier by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;450](https://github.com/askama-rs/askama/pull/450) - Comparison operators cannot be chained by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;457](https://github.com/askama-rs/askama/pull/457) - Correctly escape and reject macro names by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;460](https://github.com/askama-rs/askama/pull/460) - parser: macro calls need proper tokens by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;468](https://github.com/askama-rs/askama/pull/468) - Resolve with macro with call after caller by [@&#8203;pollend](https://github.com/pollend) in [#&#8203;469](https://github.com/askama-rs/askama/pull/469) - parser: recognize/reject prefixed ids and lits in macro calls by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;476](https://github.com/askama-rs/askama/pull/476) - parser: reject illegal string literals by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;479](https://github.com/askama-rs/askama/pull/479) - Rename `LoopItem::index` to `LoopItem::index0` by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;481](https://github.com/askama-rs/askama/pull/481) - parser: reject isolated CRs in string literals by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;483](https://github.com/askama-rs/askama/pull/483) - parser: better error message for bare CRs by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;485](https://github.com/askama-rs/askama/pull/485) - parser: `U+10FFFF` is the highest Unicode codepoint by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;484](https://github.com/askama-rs/askama/pull/484) - parser: recognize comments in macro calls by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;487](https://github.com/askama-rs/askama/pull/487) - parser: implement `{% raw %}` and `Lit::parse()` without `skip_till` by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;489](https://github.com/askama-rs/askama/pull/489) - parser: fix `{% raw %}` for delimiters starting with `-` by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;491](https://github.com/askama-rs/askama/pull/491) - parser: string literal must not be immediately followed by `suffix#` by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;496](https://github.com/askama-rs/askama/pull/496) - parser: reject illegal raw identifiers in attribute access & ensure valid paths in generics by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;497](https://github.com/askama-rs/askama/pull/497) - parser: understand nested block comments in macro calls by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;504](https://github.com/askama-rs/askama/pull/504) - Fix panic when using include in call block by [@&#8203;seijikun](https://github.com/seijikun) in [#&#8203;516](https://github.com/askama-rs/askama/pull/516) - parser: fix `check_expr()` recursion by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;519](https://github.com/askama-rs/askama/pull/519) - parser: reject isolated CR in macro inputs, too by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;524](https://github.com/askama-rs/askama/pull/524) - parser: reject bare CR in doc comments by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;526](https://github.com/askama-rs/askama/pull/526) - Fix fuzzing macro argument parsing bug by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;530](https://github.com/askama-rs/askama/pull/530) - derive: make `EvaluatedResult` know its unknown result by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;538](https://github.com/askama-rs/askama/pull/538) - parser: un-inline more error messages by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;539](https://github.com/askama-rs/askama/pull/539) - parser: fail on unterminated byte literal by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;547](https://github.com/askama-rs/askama/pull/547) - derive: track included files with relative path by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;546](https://github.com/askama-rs/askama/pull/546) - parser: `r#self` is not a valid raw identifier in macro calls by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;553](https://github.com/askama-rs/askama/pull/553) - parser/derive: use only one hasher throughout the proc\_macro by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;557](https://github.com/askama-rs/askama/pull/557) - Fix wrong span context for askama variables by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;565](https://github.com/askama-rs/askama/pull/565) - Fix invalid handling of paths starting with `::` by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;569](https://github.com/askama-rs/askama/pull/569) - README: fix a link, include readmes in `lib.rs` by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;573](https://github.com/askama-rs/askama/pull/573) - Fix wrong macro argument parsing by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;570](https://github.com/askama-rs/askama/pull/570) - parser: `r#_` is not a valid identifier by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;579](https://github.com/askama-rs/askama/pull/579) - parser: reject unclosed prefixed string by [@&#8203;Kijewski](https://github.com/Kijewski) in [#&#8203;582](https://github.com/askama-rs/askama/pull/582) - Emit warnings if duplicated `block` calls are done by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;580](https://github.com/askama-rs/askama/pull/580) - Fix block duplication warning by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;586](https://github.com/askama-rs/askama/pull/586) - Fix wrong parsing of number if digit does not match base by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;600](https://github.com/askama-rs/askama/pull/600) - Fix formatting of `safe` filter in `template_syntax.md` by [@&#8203;FalkWoldmann](https://github.com/FalkWoldmann) in [#&#8203;587](https://github.com/askama-rs/askama/pull/587) - Limit maximum number of references in generics to prevent `syn` stack overflow by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;611](https://github.com/askama-rs/askama/pull/611) - Fix nested includes not handled properly by [@&#8203;fbilhaut](https://github.com/fbilhaut) in [#&#8203;619](https://github.com/askama-rs/askama/pull/619) - filter\_fn: Further improve invalid invocation compile error messages by [@&#8203;seijikun](https://github.com/seijikun) in [#&#8203;614](https://github.com/askama-rs/askama/pull/614) - Fix method call on enum variant templates by [@&#8203;GuillaumeGomez](https://github.com/GuillaumeGomez) in [#&#8203;635](https://github.com/askama-rs/askama/pull/635) #### New Contributors - [@&#8203;C0D3-M4513R](https://github.com/C0D3-M4513R) made their first contribution in [#&#8203;432](https://github.com/askama-rs/askama/pull/432) - [@&#8203;martinetd](https://github.com/martinetd) made their first contribution in [#&#8203;453](https://github.com/askama-rs/askama/pull/453) - [@&#8203;pollend](https://github.com/pollend) made their first contribution in [#&#8203;422](https://github.com/askama-rs/askama/pull/422) - [@&#8203;sinder38](https://github.com/sinder38) made their first contribution in [#&#8203;456](https://github.com/askama-rs/askama/pull/456) - [@&#8203;zamazan4ik](https://github.com/zamazan4ik) made their first contribution in [#&#8203;188](https://github.com/askama-rs/askama/pull/188) - [@&#8203;seijikun](https://github.com/seijikun) made their first contribution in [#&#8203;516](https://github.com/askama-rs/askama/pull/516) - [@&#8203;VojtaStanek](https://github.com/VojtaStanek) made their first contribution in [#&#8203;601](https://github.com/askama-rs/askama/pull/601) - [@&#8203;FalkWoldmann](https://github.com/FalkWoldmann) made their first contribution in [#&#8203;587](https://github.com/askama-rs/askama/pull/587) - [@&#8203;fbilhaut](https://github.com/fbilhaut) made their first contribution in [#&#8203;619](https://github.com/askama-rs/askama/pull/619) - [@&#8203;tdelabro](https://github.com/tdelabro) made their first contribution in [#&#8203;620](https://github.com/askama-rs/askama/pull/620) - [@&#8203;bwcii](https://github.com/bwcii) made their first contribution in [#&#8203;630](https://github.com/askama-rs/askama/pull/630) **Full Changelog**: <https://github.com/askama-rs/askama/compare/v0.14.0...v0.15.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi42Ni4xIiwidXBkYXRlZEluVmVyIjoiNDIuNjYuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
renovate added 1 commit 2025-12-24 00:27:20 +00:00
Update Rust crate askama to 0.15.0
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
7564702bd5
renovate scheduled this pull request to auto merge when all checks succeed 2025-12-24 00:27:21 +00:00
renovate merged commit 3aaaffd1a8 into master 2025-12-24 00:27:23 +00:00
renovate deleted branch renovate/askama-0.x 2025-12-24 00:27:23 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: pierre/BasicOIDC#448