1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 17:07:01 +02:00

Re-export actix dependency. Closes #260 (#264)

- Re-export actix's prelude into actix namespace
- Removing implicit dependency on root's actix module
This commit is contained in:
Douman
2018-05-31 20:43:14 +03:00
committed by GitHub
parent 77becb9bc0
commit 80965d7a9a
16 changed files with 50 additions and 34 deletions

View File

@@ -1,8 +1,9 @@
//! Http server
extern crate actix;
use std::net::Shutdown;
use std::{io, time};
use actix;
use bytes::BytesMut;
use futures::{Async, Poll};
use tokio_io::{AsyncRead, AsyncWrite};
@@ -42,9 +43,8 @@ pub(crate) const MAX_WRITE_BUFFER_SIZE: usize = 65_536;
/// This is shortcut for `server::HttpServer::new()` method.
///
/// ```rust
/// # extern crate actix;
/// # extern crate actix_web;
/// use actix::*;
/// use actix_web::actix::*;
/// use actix_web::{server, App, HttpResponse};
///
/// fn main() {