lambda-fairy / maud

:pencil: Compile-time HTML templates for Rust
https://maud.lambda.xyz
Apache License 2.0
1.98k stars 132 forks source link

Add support for actix-web 4 #348

Closed SorenHolstHansen closed 1 year ago

SorenHolstHansen commented 1 year ago

As the title says. It currently breaks on an actix web route with

the trait bound `<index as actix_web::service::HttpServiceFactory>::register::index::{closure#0}::maud::PreEscaped<std::string::String>: actix_web::Responder` is not satisfied
the following other types implement trait `actix_web::Responder`:
  &'static [u8]
  &'static str
  &std::string::String
  (R, actix_web::http::StatusCode)
  actix_http::responses::builder::ResponseBuilder
  actix_web::CustomizeResponder<T>
  actix_web::Either<L, R>
  actix_web::HttpResponse<B>
and 13 others
required because of the requirements on the impl of `actix_web::Responder` for `std::result::Result<<index as actix_web::service::HttpServiceFactory>::register::index::{closure#0}::maud::PreEscaped<std::string::String>, actix_web::Error>
SanchithHegde commented 1 year ago

Related: #330, #340.

TL;DR: Use maud as a git dependency.

SorenHolstHansen commented 1 year ago

Thanks