1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-01-22 23:05:56 +01:00

redis: Minimize futures dependency

This commit is contained in:
Yuki Okushi 2020-05-21 17:17:56 +09:00
parent 2e3a094ef7
commit b699506526
No known key found for this signature in database
GPG Key ID: B0986C85C0E2DAA1
4 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# Changes
## unreleased
* Minimize `futures` dependency
## [0.9.0-alpha.2]
* Add `cookie_http_only` functionality to RedisSession builder, setting this

View File

@ -30,7 +30,7 @@ actix-utils = "1.0.3"
log = "0.4.6"
backoff = "0.1.5"
derive_more = "0.99.2"
futures = "0.3.1"
futures-util = { version = "0.3.5", default-features = false }
redis-async = "0.6.1"
actix-rt = "1.0.0"
time = "0.2.9"

View File

@ -6,7 +6,7 @@ use actix::prelude::*;
use actix_utils::oneshot;
use backoff::backoff::Backoff;
use backoff::ExponentialBackoff;
use futures::FutureExt;
use futures_util::FutureExt;
use redis_async::error::Error as RespError;
use redis_async::resp::{RespCodec, RespValue};
use tokio::io::{split, WriteHalf};

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::{ok, Future, Ready};
use futures_util::future::{ok, Future, Ready};
use rand::{distributions::Alphanumeric, rngs::OsRng, Rng};
use redis_async::resp::RespValue;
use time::{self, Duration, OffsetDateTime};