mirror of
https://github.com/actix/examples
synced 2025-06-29 02:10:36 +02:00
v3 examples (#364)
This commit is contained in:
@ -2,14 +2,9 @@
|
||||
name = "cookie-session"
|
||||
version = "1.0.0"
|
||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||
workspace = ".."
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
actix-web = "2.0.0"
|
||||
actix-session = "0.3.0"
|
||||
actix-rt = "1.0.0"
|
||||
|
||||
futures = "0.3.1"
|
||||
time = "0.1"
|
||||
actix-web = "3"
|
||||
actix-session = "0.4"
|
||||
env_logger = "0.7"
|
||||
|
@ -25,7 +25,7 @@ async fn index(session: Session, req: HttpRequest) -> Result<&'static str> {
|
||||
Ok("welcome!")
|
||||
}
|
||||
|
||||
#[actix_rt::main]
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
std::env::set_var("RUST_LOG", "actix_web=info");
|
||||
env_logger::init();
|
||||
|
Reference in New Issue
Block a user