-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest release of askama_actix incompatible with askama (askama_shared 0.12.1 needed) #629
Comments
I've just published askama_shared 0.12.1, can you check that this works for you? |
Hi, I think we’ve landed in a bit of a dependency hell now. :( Cargo.toml[package]
name = "foo"
version = "0.1.0"
edition = "2021"
[dependencies]
actix-web = "3.3.3"
askama = "0.11.0"
askama_actix = "0.12.0"
|
I'm getting the same error when compiling zoxide, which uses Askama with all features switched off. ajeetdsouza/zoxide#350 |
I've just published askama_derive 0.11.2, which should fix this problem. |
That fixes one issue to only introduce another. Compiler now spits out |
Crap, sorry for all the churn. I've pushed out askama 0.11.1, it's bed time now. Probably need to come up with a different strategy for managing versions in this repo... |
That fixed it, thanks! |
Thanks! :) Now I’ve run into the next issue. :/ With Last time you had to (temporarily) revert changes for |
The least I can do now is to say that with the release of In one project I successfully use the following dependencies. :) actix-files = "0.6.0"
actix-web = { version = "4.0.1", default-features = false, features = [ "macros" ] }
actix-web-httpauth = "0.6.0"
askama = { version = "0.11.1", default-features = false }
askama_actix = "0.13.0" Edit: Feel free to close this issue. |
Thanks, going to close this for now -- please feel free to open a new issue if you're still seeing problems (though I hope we'll be able to merge #647 soon and make all this more robust). |
Before this PR the handling of integrations was done both by askama_shared and askama_derive. This diff lets askama_shared do the work. This will prevent problems like #629, when both packages might come out of sync.
Example code:
(this is a simple combination of the minimal Actix and Askama examples)
cargo.toml
using the latest releases that work in combination:Upgrading either dependency breaks:
Upgrading
askama
to0.11
results inactix_web::Responder
not being implemented on the template struct.Upgrading
askama_actix
as well (0.12
) results inBoxBody
missing.When pulling in the as of yet unreleased
askama_shared
0.12.1 from commit 3b701f2 via the following configuration the test project builds and runs again.The text was updated successfully, but these errors were encountered: