-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Add support for flash message #158
Comments
Done |
I'm having issues compiling the latest version of salvo. Blocking waiting for file lock on build directory
Compiling salvo_extra v0.36.0
error[E0632]: cannot provide explicit generic arguments when `impl Trait` is used in argument position
--> /Users/.../.cargo/registry/src/github.com-1ecc6299db9ec823/salvo_extra-0.36.0/src/force_https.rs:50:42
|
50 | if let Some(host) = req.header::<String>(header::HOST) {
| ^^^^^^ explicit generic argument not allowed
|
= note: see issue #83701 <https://github.com/rust-lang/rust/issues/83701> for more information Disabling defeault-features doesn't seem to work either. salvo = { version = "0.36.0", default-features = false, features = ["affix", "compression", "caching-headers", "logging", "proxy", "serve-static"] } |
I also noticed that some crates use |
rust-lang/crates.io#728 |
You need to upgrade your rust to latest version. |
@prabirshrestha @chrislearn I think this issue can be closed now. |
This is similar to one popularized by the ruby on rails. https://www.rubyguides.com/2019/11/rails-flash-messages/
rust counter parts:
Initially I'm looking to show flash message when the user sign up or resets the password.
Noticed that one of the sample using it but don't see how it is getting set in the rust world.
salvo/examples/db-sea-orm/templates/index.html.tera
Lines 5 to 8 in 9524d95
The text was updated successfully, but these errors were encountered: