2018-08-21 21:11:16 -07:00
|
|
|
//! Actix net - framework for the compisible network services for Rust.
|
2018-08-19 10:47:04 -07:00
|
|
|
//!
|
|
|
|
//! ## Package feature
|
|
|
|
//!
|
|
|
|
//! * `tls` - enables ssl support via `native-tls` crate
|
2018-08-21 21:11:16 -07:00
|
|
|
//! * `ssl` - enables ssl support via `openssl` crate
|
2018-08-19 10:47:04 -07:00
|
|
|
//! * `rust-tls` - enables ssl support via `rustls` crate
|
|
|
|
// #![warn(missing_docs)]
|
|
|
|
|
2018-09-07 14:34:31 -07:00
|
|
|
#![cfg_attr(
|
|
|
|
feature = "cargo-clippy",
|
2018-10-29 20:29:47 -07:00
|
|
|
allow(
|
|
|
|
declare_interior_mutable_const,
|
|
|
|
borrow_interior_mutable_const
|
|
|
|
)
|
2018-09-07 14:34:31 -07:00
|
|
|
)]
|
|
|
|
|
2018-08-19 10:47:04 -07:00
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
|
|
|
extern crate bytes;
|
2018-09-10 10:59:35 -07:00
|
|
|
#[macro_use]
|
2018-08-19 10:47:04 -07:00
|
|
|
extern crate futures;
|
|
|
|
extern crate mio;
|
|
|
|
extern crate net2;
|
|
|
|
extern crate num_cpus;
|
|
|
|
extern crate slab;
|
2018-08-23 20:47:41 -07:00
|
|
|
extern crate tokio;
|
2018-09-12 18:47:39 -07:00
|
|
|
extern crate tokio_codec;
|
2018-09-08 09:36:38 -07:00
|
|
|
extern crate tokio_current_thread;
|
2018-08-19 10:47:04 -07:00
|
|
|
extern crate tokio_io;
|
|
|
|
extern crate tokio_reactor;
|
|
|
|
extern crate tokio_tcp;
|
|
|
|
extern crate tokio_timer;
|
|
|
|
extern crate tower_service;
|
2018-08-23 20:47:41 -07:00
|
|
|
extern crate trust_dns_resolver;
|
2018-08-19 10:47:04 -07:00
|
|
|
|
2018-09-07 13:06:51 -07:00
|
|
|
#[allow(unused_imports)]
|
2018-09-04 12:42:06 -07:00
|
|
|
#[macro_use]
|
|
|
|
extern crate actix;
|
|
|
|
|
2018-08-19 10:47:04 -07:00
|
|
|
#[cfg(feature = "tls")]
|
|
|
|
extern crate native_tls;
|
|
|
|
|
|
|
|
#[cfg(feature = "ssl")]
|
|
|
|
extern crate openssl;
|
|
|
|
#[cfg(feature = "ssl")]
|
|
|
|
extern crate tokio_openssl;
|
|
|
|
|
|
|
|
#[cfg(feature = "rust-tls")]
|
|
|
|
extern crate rustls;
|
|
|
|
#[cfg(feature = "rust-tls")]
|
|
|
|
extern crate tokio_rustls;
|
|
|
|
#[cfg(feature = "rust-tls")]
|
|
|
|
extern crate webpki;
|
|
|
|
#[cfg(feature = "rust-tls")]
|
|
|
|
extern crate webpki_roots;
|
|
|
|
|
2018-12-03 13:49:46 -08:00
|
|
|
#[doc(hidden)]
|
|
|
|
pub mod cell;
|
2018-09-17 21:46:02 -07:00
|
|
|
pub mod cloneable;
|
2018-10-05 13:07:09 -07:00
|
|
|
pub mod codec;
|
2018-08-29 15:15:24 -07:00
|
|
|
pub mod connector;
|
2018-09-14 13:07:38 -07:00
|
|
|
pub mod counter;
|
2018-09-27 17:05:48 -07:00
|
|
|
pub mod either;
|
2018-09-12 18:47:39 -07:00
|
|
|
pub mod framed;
|
2018-09-14 13:30:29 -07:00
|
|
|
pub mod inflight;
|
2018-09-20 11:16:12 -07:00
|
|
|
pub mod keepalive;
|
2018-09-10 19:16:46 -07:00
|
|
|
pub mod resolver;
|
2018-09-07 23:27:00 -07:00
|
|
|
pub mod server;
|
2018-08-19 10:47:04 -07:00
|
|
|
pub mod service;
|
|
|
|
pub mod ssl;
|
2018-09-01 10:29:56 -07:00
|
|
|
pub mod stream;
|
2018-10-29 15:48:56 -07:00
|
|
|
pub mod time;
|
2018-10-23 21:38:36 -07:00
|
|
|
pub mod timeout;
|
2018-09-20 11:16:12 -07:00
|
|
|
|
|
|
|
#[derive(Copy, Clone, Debug)]
|
|
|
|
pub enum Never {}
|