[dependencies]
env_logger = "0.9.0"
actix-web = { version = "3.3.3", default-features = false }
askama = { version = "0.11.0", default-features = false, features = ["with-actix-web"] }
askama_actix = { version = "0.11.1", default-features = false }
Error
error[E0407]: method `extension` is not a member of trait `askama::Template`
--> src/main.rs:4:10
|
4 | #[derive(Template)]
| ^^^^^^^^ not a member of trait `askama::Template`
|
= note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0407]: method `size_hint` is not a member of trait `askama::Template`
--> src/main.rs:4:10
|
4 | #[derive(Template)]
| ^^^^^^^^ not a member of trait `askama::Template`
|
= note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0405]: cannot find trait `SizedTemplate` in crate `askama`
--> src/main.rs:4:10
|
4 | #[derive(Template)]
| ^^^^^^^^ not found in `askama`
|
= note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider importing this trait
|
1 | use askama_actix::SizedTemplate;
|
Some errors have detailed explanations: E0405, E0407.
For more information about an error, try `rustc --explain E0405`.
error: could not compile `cfunw` due to 3 previous errors
And when I change dependencies as below.It's build with no error.
Cargo.toml
[dependencies]
env_logger = "0.9.0"
actix-web = { version = "3.3.3", default-features = false }
askama = { version = "0.10.5", default-features = false, features = ["with-actix-web"] }
askama_actix = { version = "0.11.1", default-features = false }
main.rs
These dependencies have the following error.
Cargo.toml
Error
And when I change dependencies as below.It's build with no error.
Cargo.toml
Build result
I think the new version have same problem.