Skip to content

Commit 41d7e45

Browse files
authored
Update to new rinja version (askama) (rust-lang#14530)
Askama maintenance was handed over to rinja maintainers so new `rinja` release is actually `askama`. More information [here](https://blog.guillaume-gomez.fr/articles/2025-03-19+Askama+and+Rinja+merge). r? @flip1995 changelog: none
2 parents 193e9f2 + 893a6a3 commit 41d7e45

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ walkdir = "2.3"
4242
filetime = "0.2.9"
4343
itertools = "0.12"
4444
pulldown-cmark = { version = "0.11", default-features = false, features = ["html"] }
45-
rinja = { version = "0.3", default-features = false, features = ["config"] }
45+
askama = { version = "0.13", default-features = false, features = ["alloc", "config", "derive"] }
4646

4747
# UI test dependencies
4848
clippy_utils = { path = "clippy_utils" }

rinja.toml renamed to askama.toml

File renamed without changes.

tests/compile-test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
#![warn(rust_2018_idioms, unused_lifetimes)]
33
#![allow(unused_extern_crates)]
44

5+
use askama::Template;
6+
use askama::filters::Safe;
57
use cargo_metadata::Message;
68
use cargo_metadata::diagnostic::{Applicability, Diagnostic};
79
use clippy_config::ClippyConfiguration;
810
use clippy_lints::LintInfo;
911
use clippy_lints::declared_lints::LINTS;
1012
use clippy_lints::deprecated_lints::{DEPRECATED, DEPRECATED_VERSION, RENAMED};
1113
use pulldown_cmark::{Options, Parser, html};
12-
use rinja::Template;
13-
use rinja::filters::Safe;
1414
use serde::Deserialize;
1515
use test_utils::IS_RUSTC_TEST_SUITE;
1616
use ui_test::custom_flags::Flag;

0 commit comments

Comments
 (0)