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:
parent
fc8e07b947
commit
24372467d9
3 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue