1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 15:51:06 +01:00

bump actix-web version

This commit is contained in:
pandaman64 2019-12-26 15:47:31 +09:00
parent 2e1d98a4be
commit 73e70bd249
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ tokio = "0.2.6"
tokio-util = "0.2.0"
# actix web session
actix-web = { version = "2.0.0-rc", optional = true }
actix-web = { version = "2.0.0", optional = true }
actix-service = { version = "1.0.0", optional = true }
actix-session = { version = "0.3.0", optional = true }
rand = { version = "0.7.0", optional = true }

View File

@ -32,6 +32,6 @@ async fn main() -> std::io::Result<()> {
.service(web::resource("/").to(index))
})
.bind("0.0.0.0:8080")?
.start()
.run()
.await
}

View File

@ -10,7 +10,7 @@ use actix_web::cookie::{Cookie, CookieJar, Key, SameSite};
use actix_web::dev::{ServiceRequest, ServiceResponse};
use actix_web::http::header::{self, HeaderValue};
use actix_web::{error, Error, HttpMessage};
use futures::future::{err, ok, Future, Ready};
use futures::future::{ok, Future, Ready};
use rand::{distributions::Alphanumeric, rngs::OsRng, Rng};
use redis_async::resp::RespValue;
use time::{self, Duration};