rust
Rust Programming asonix Now 100%

I just upgraded a bunch of stuff to actix-web 4.0.0-beta.3

And it went really well. So far the only changes I noticed were the web::block error api (due the the use of tokio's spawn_blocking now instead of actix-threadpool), the move of Service's Request from being an associated type to a generic, the move to insert_header and append_header, and the inclusion of the correct JsonPayloadError so I don't need to depend on awc to get that type :)

Here's what I've gotten done

My current Big Project, Hyaenidae, has not been updated because actix-session doesn't yet have a beta release, but I'm keeping my eye out.

One question I have about the Service API changing is: why. I'm interested to know if there's a specific benefit for moving Request to be a generic instead of an associated type. I don't deal with Service much outside of writing a few middlewares, so this change doesn't make a ton of sense to me.

4
3
Comments 3