mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-30 02:32:36 +01:00
codegen: Minimize futures
dependencies
This commit is contained in:
parent
fc8e07b947
commit
24372467d9
@ -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 }
|
||||
|
@ -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> {
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user