Closed tl8roy closed 2 years ago
@tl8roy thanks for the info!
Beta versions of actix-web 4
are sometimes backwards incompatible.
This will definitely be fixed for actix-web-grants
After the release of the version, I will additionally report here.
So, first error caused by actix-web changes 2487.
In fact, it upsets me. At the moment, we have only two options:
1) Give up support of Guard
way protection
2) Work-around approach: use headers instead of extensions. But it seems strange and less optimal, however it works fine (I've tested). It could be moved to the optional feature of actix-web-grants
, so that it doesn't affect users who do not use this feature.
Current actix-web
documentation of Guard is incorrect. I hope find any comments from core-team after that we will take our direction 🤔
It looks like the first issue will be fixed in the next versions of actix-web
(https://github.com/actix/actix-web/pull/2552) 🚀
actix-web-grants 3.0.0-beta.5 has just been released! 🎉
It works with current actix-web: 4.0.0-beta.18
After trying to update to beta.14, I get the following error. The second one looks like a quick fix. Not so sure about the first one.
I have reverted to an old Cargo.lock file which I'll stay with for now.