#![warn(
rust_2018_idioms,
unreachable_pub,
missing_debug_implementations,
)]
#![allow(
type_alias_bounds,
clippy::type_complexity,
clippy::borrow_interior_mutable_const,
clippy::needless_doctest_main,
clippy::too_many_arguments,
clippy::new_without_default
)]
#[macro_use]
extern crate log;
#[cfg(not(test))] pub use ntex_macros::{rt_main as main, rt_test as test};
#[cfg(test)]
pub(crate) use ntex_macros::rt_test2 as rt_test;
pub use ntex_service::{forward_poll_ready, forward_poll_shutdown};
pub mod http;
pub mod server;
pub mod web;
pub mod ws;
pub use self::service::{
chain, chain_factory, fn_service, into_service, IntoService, IntoServiceFactory,
Middleware, Pipeline, Service, ServiceCall, ServiceCtx, ServiceFactory,
};
pub use ntex_util::{channel, task};
pub mod codec {
pub use ntex_codec::*;
}
pub mod connect {
pub use ntex_connect::*;
}
pub mod router {
pub use ntex_router::*;
}
pub mod rt {
pub use ntex_rt::*;
#[cfg(feature = "tokio")]
pub use ntex_tokio::*;
#[cfg(all(
feature = "async-std",
not(feature = "tokio"),
not(feature = "glommio")
))]
pub use ntex_async_std::*;
#[cfg(all(
feature = "glommio",
not(feature = "tokio"),
not(feature = "async-std")
))]
pub use ntex_glommio::*;
}
pub mod service {
pub use ntex_service::*;
}
pub mod time {
pub use ntex_util::time::*;
}
pub mod io {
pub use ntex_io::*;
}
pub mod testing {
#[doc(hidden)]
pub use ntex_io::testing::IoTest as Io;
pub use ntex_io::testing::IoTest;
}
pub mod tls {
pub use ntex_tls::*;
}
pub mod util {
pub use ntex_bytes::{
Buf, BufMut, ByteString, Bytes, BytesMut, BytesVec, Pool, PoolId, PoolRef,
};
pub use ntex_util::{future::*, ready, services::*, HashMap, HashSet};
}