1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-22 08:07:18 +00:00

codegen: Minimize futures dependencies

This commit is contained in:
Yuki Okushi 2020-05-18 11:46:37 +09:00
parent fc8e07b947
commit 24372467d9
No known key found for this signature in database
GPG key ID: B0986C85C0E2DAA1
3 changed files with 3 additions and 3 deletions

View file

@ -19,4 +19,4 @@ proc-macro2 = "^1"
[dev-dependencies]
actix-rt = "1.0.0"
actix-web = "3.0.0-alpha.2"
futures = "0.3.1"
futures-util = { version = "0.3.5", default-features = false }

View file

@ -33,7 +33,6 @@
//! ```rust
//! use actix_web::HttpResponse;
//! use actix_web_codegen::get;
//! use futures::{future, Future};
//!
//! #[get("/test")]
//! async fn async_test() -> Result<HttpResponse, actix_web::Error> {

View file

@ -1,10 +1,11 @@
use std::future::Future;
use std::pin::Pin;
use std::task::{Context, Poll};
use actix_web::{http, test, web::Path, App, HttpResponse, Responder, Error};
use actix_web::dev::{Service, Transform, ServiceRequest, ServiceResponse};
use actix_web_codegen::{connect, delete, get, head, options, patch, post, put, trace};
use futures::{future, Future};
use futures_util::future;
use actix_web::http::header::{HeaderName, HeaderValue};
// Make sure that we can name function as 'config'