Skip to content

Commit d755d54

Browse files
committed
Update to askama v0.15
1 parent acab216 commit d755d54

File tree

25 files changed

+25
-553
lines changed

25 files changed

+25
-553
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,5 @@ jobs:
123123
- uses: actions/checkout@v6
124124
- uses: dtolnay/rust-toolchain@master
125125
with:
126-
toolchain: "1.83.0"
126+
toolchain: "1.88.0"
127127
- run: cargo check --lib -p askama_web

.rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
edition = "2021"
1+
edition = "2024"
22
group_imports = "StdExternalCrate"
33
imports_granularity = "Module"
44
newline_style = "Unix"

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
resolver = "2"
2+
resolver = "3"
33
members = [
44
"askama_web",
55
"askama_web_derive",
@@ -17,8 +17,8 @@ members = [
1717
]
1818

1919
[workspace.dependencies]
20-
askama = { version = "0.14.0", default-features = false, features = ["std"] }
21-
askama_web = { path = "askama_web", version = "0.14.6", default-features = false }
20+
askama = { version = "0.15.0", default-features = false, features = ["std"] }
21+
askama_web = { path = "askama_web", version = "0.15.0", default-features = false }
2222

2323
[workspace.lints.rust]
2424
unknown_lints = { level = "allow", priority = -1 }

askama_web/Cargo.toml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
[package]
22
name = "askama_web"
3-
version = "0.14.7"
4-
edition = "2021"
3+
version = "0.15.0"
4+
edition = "2024"
55
description = "A compatibility add-on for Askama to support many different web frameworks"
66
keywords = ["markup", "template", "jinja2", "html"]
77
categories = ["template-engine"]
88
homepage = "https://askama.readthedocs.io/"
99
repository = "https://github.com/askama-rs/askama_web/"
1010
license = "MIT OR Apache-2.0"
11-
rust-version = "1.83"
11+
rust-version = "1.88"
1212

1313
[package.metadata.docs.rs]
1414
all-features = true
1515
rustdoc-args = ["--generate-link-to-definition", "--cfg=docsrs"]
1616

1717
[dependencies]
18-
askama = { version = "0.14.0", default-features = false, features = ["std"] }
19-
askama_web_derive = { version = "0.1.0", path = "../askama_web_derive", optional = true }
18+
askama = { version = "0.15.0", default-features = false, features = ["std"] }
19+
askama_web_derive = { version = "0.2.0", path = "../askama_web_derive", optional = true }
2020

2121
actix_web_4 = { package = "actix-web", version = "4.0.0", optional = true, default-features = false }
2222
axum_core_0_4 = { package = "axum-core", version = "0.4.0", optional = true, default-features = false }
@@ -29,15 +29,8 @@ http_1 = { package = "http", version = "1.0.0", optional = true, default-feature
2929
log_0_4 = { package = "log", version = "0.4.0", optional = true, default-features = false }
3030
poem_3 = { package = "poem", version = "3.0.0", optional = true, default-features = false }
3131
rocket_0_5 = { package = "rocket", version = "0.5.0", optional = true, default-features = false }
32-
salvo_core_0_76 = { package = "salvo_core", version = "0.76.0", optional = true, default-features = false }
33-
salvo_core_0_77 = { package = "salvo_core", version = "0.77.0", optional = true, default-features = false }
34-
salvo_core_0_78 = { package = "salvo_core", version = "0.78.0", optional = true, default-features = false }
35-
salvo_core_0_79 = { package = "salvo_core", version = "0.79.0", optional = true, default-features = false }
36-
salvo_core_0_80 = { package = "salvo_core", version = "0.80.0", optional = true, default-features = false }
37-
salvo_core_0_81 = { package = "salvo_core", version = "0.81.0", optional = true, default-features = false }
3832
tracing_0_1 = { package = "tracing", version = "0.1.0", optional = true, default-features = false }
3933
trillium_0_2 = { package = "trillium", version = "0.2.0", optional = true, default-features = false }
40-
viz_core_0_10 = { package = "viz-core", version = "0.10.0", optional = true, default-features = false }
4134
warp_0_3 = { package = "warp", version = "0.3.3", optional = true, default-features = false }
4235
warp_0_4 = { package = "warp", version = "0.4.0", optional = true, default-features = false }
4336

@@ -55,21 +48,7 @@ derive = ["dep:askama_web_derive"]
5548
"cot-0.4" = ["dep:cot_0_4"]
5649
"poem-3" = ["dep:poem_3", "dep:bytes_1", "dep:http_1"]
5750
"rocket-0.5" = ["dep:rocket_0_5"]
58-
"salvo-0.76" = ["salvo_core-0.76"]
59-
"salvo-0.77" = ["salvo_core-0.77"]
60-
"salvo-0.78" = ["salvo_core-0.78"]
61-
"salvo-0.79" = ["salvo_core-0.79"]
62-
"salvo-0.80" = ["salvo_core-0.80"]
63-
"salvo-0.81" = ["salvo_core-0.81"]
64-
"salvo_core-0.76" = ["dep:salvo_core_0_76", "dep:bytes_1", "dep:http_1"]
65-
"salvo_core-0.77" = ["dep:salvo_core_0_77", "dep:bytes_1", "dep:http_1"]
66-
"salvo_core-0.78" = ["dep:salvo_core_0_78", "dep:bytes_1", "dep:http_1"]
67-
"salvo_core-0.79" = ["dep:salvo_core_0_79", "dep:bytes_1", "dep:http_1"]
68-
"salvo_core-0.80" = ["dep:salvo_core_0_80", "dep:bytes_1", "dep:http_1"]
69-
"salvo_core-0.81" = ["dep:salvo_core_0_81", "dep:bytes_1", "dep:http_1"]
7051
"trillium-0.2" = ["dep:trillium_0_2"]
71-
"viz-0.10" = ["viz-core-0.10"]
72-
"viz-core-0.10" = ["dep:viz_core_0_10", "dep:http_1"]
7352
"warp-0.3" = ["dep:warp_0_3", "dep:bytes_1", "dep:http_0_2"]
7453
"warp-0.4" = ["dep:warp_0_4", "dep:bytes_1", "dep:http_1"]
7554

askama_web/src/implementation/mod.rs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,8 @@ pub mod cot_0_4;
3030
pub mod poem_3;
3131
#[cfg(feature = "rocket-0.5")]
3232
pub mod rocket_0_5;
33-
#[cfg(feature = "salvo_core-0.76")]
34-
pub mod salvo_core_0_76;
35-
#[cfg(feature = "salvo_core-0.77")]
36-
pub mod salvo_core_0_77;
37-
#[cfg(feature = "salvo_core-0.78")]
38-
pub mod salvo_core_0_78;
39-
#[cfg(feature = "salvo_core-0.79")]
40-
pub mod salvo_core_0_79;
41-
#[cfg(feature = "salvo_core-0.80")]
42-
pub mod salvo_core_0_80;
43-
#[cfg(feature = "salvo_core-0.81")]
44-
pub mod salvo_core_0_81;
4533
#[cfg(feature = "trillium-0.2")]
4634
pub mod trillium_0_2;
47-
#[cfg(feature = "viz-core-0.10")]
48-
pub mod viz_core_0_10;
4935
#[cfg(feature = "warp-0.3")]
5036
pub mod warp_0_3;
5137
#[cfg(feature = "warp-0.4")]
@@ -65,22 +51,8 @@ pub use noop as cot_0_4;
6551
pub use noop as poem_3;
6652
#[cfg(all(feature = "derive", not(feature = "rocket-0.5")))]
6753
pub use noop as rocket_0_5;
68-
#[cfg(all(feature = "derive", not(feature = "salvo_core-0.76")))]
69-
pub use noop as salvo_core_0_76;
70-
#[cfg(all(feature = "derive", not(feature = "salvo_core-0.77")))]
71-
pub use noop as salvo_core_0_77;
72-
#[cfg(all(feature = "derive", not(feature = "salvo_core-0.78")))]
73-
pub use noop as salvo_core_0_78;
74-
#[cfg(all(feature = "derive", not(feature = "salvo_core-0.79")))]
75-
pub use noop as salvo_core_0_79;
76-
#[cfg(all(feature = "derive", not(feature = "salvo_core-0.80")))]
77-
pub use noop as salvo_core_0_80;
78-
#[cfg(all(feature = "derive", not(feature = "salvo_core-0.81")))]
79-
pub use noop as salvo_core_0_81;
8054
#[cfg(all(feature = "derive", not(feature = "trillium-0.2")))]
8155
pub use noop as trillium_0_2;
82-
#[cfg(all(feature = "derive", not(feature = "viz-core-0.10")))]
83-
pub use noop as viz_core_0_10;
8456
#[cfg(all(feature = "derive", not(feature = "warp-0.3")))]
8557
pub use noop as warp_0_3;
8658
#[cfg(all(feature = "derive", not(feature = "warp-0.4")))]
@@ -98,14 +70,7 @@ macro_rules! __askama_web_impl {
9870
$crate::__askama_web_impl::cot_0_4::derive!(@ $ast);
9971
$crate::__askama_web_impl::poem_3::derive!(@ $ast);
10072
$crate::__askama_web_impl::rocket_0_5::derive!(@ $ast);
101-
$crate::__askama_web_impl::salvo_core_0_76::derive!(@ $ast);
102-
$crate::__askama_web_impl::salvo_core_0_77::derive!(@ $ast);
103-
$crate::__askama_web_impl::salvo_core_0_78::derive!(@ $ast);
104-
$crate::__askama_web_impl::salvo_core_0_79::derive!(@ $ast);
105-
$crate::__askama_web_impl::salvo_core_0_80::derive!(@ $ast);
106-
$crate::__askama_web_impl::salvo_core_0_81::derive!(@ $ast);
10773
$crate::__askama_web_impl::trillium_0_2::derive!(@ $ast);
108-
$crate::__askama_web_impl::viz_core_0_10::derive!(@ $ast);
10974
$crate::__askama_web_impl::warp_0_3::derive!(@ $ast);
11075
$crate::__askama_web_impl::warp_0_4::derive!(@ $ast);
11176
};

askama_web/src/implementation/salvo_core_0_76.rs

Lines changed: 0 additions & 66 deletions
This file was deleted.

askama_web/src/implementation/salvo_core_0_77.rs

Lines changed: 0 additions & 66 deletions
This file was deleted.

askama_web/src/implementation/salvo_core_0_78.rs

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)