djc / askama

Type-safe, compiled Jinja-like templates for Rust
Apache License 2.0
3.35k stars 215 forks source link

Use re-exported askama::* in integration tests, etc. #1000

Closed Kijewski closed 5 months ago

Kijewski commented 5 months ago

Integration crates should use askama_…::Template instead of askama::Template https://github.com/djc/askama/issues/999#issuecomment-2041132503.

Also some minor clean ups in the integration crates. Removes dev-dependencies:

Removing futures-lite v2.3.0
Removing h2 v0.4.4
Removing hyper v1.2.0
Removing parking v2.2.0
Removing tokio-test v0.4.4
Kijewski commented 5 months ago

Why are mime and mime_guess being removed as dependent features?

The features don't do anything for quite some time: #594. We determine the mime type of the Template at compile time now (using the extension of the template file, but with the option of a manual override).

djc commented 5 months ago

PR/issue #1000, cool milestone!