1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-07-01 20:25:09 +02:00

Clean up deps and macro_use (#81)

This commit is contained in:
Yuki Okushi
2020-07-14 19:20:42 +09:00
committed by GitHub
parent 2ae3c80548
commit 43ababef8f
5 changed files with 7 additions and 14 deletions

View File

@ -5,18 +5,12 @@
//! * [API Documentation (Releases)](https://docs.rs/actix-redis/)
//! * [Chat on gitter](https://gitter.im/actix/actix)
//! * Cargo package: [actix-redis](https://crates.io/crates/actix-redis)
//! * Minimum supported Rust version: 1.26 or later
//!
#[macro_use]
extern crate log;
#[macro_use]
extern crate redis_async;
#[macro_use]
extern crate derive_more;
//! * Minimum supported Rust version: 1.40.0 or later
mod redis;
pub use redis::{Command, RedisActor};
use derive_more::{Display, From};
#[cfg(feature = "web")]
mod session;
#[cfg(feature = "web")]

View File

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

View File

@ -13,6 +13,7 @@ use actix_web::{error, Error, HttpMessage};
use futures_util::future::{ok, Future, Ready};
use rand::{distributions::Alphanumeric, rngs::OsRng, Rng};
use redis_async::resp::RespValue;
use redis_async::resp_array;
use time::{self, Duration, OffsetDateTime};
use crate::redis::{Command, RedisActor};