diff --git a/README.md b/README.md index c316a7405..07747c990 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Actix net - framework for composable network services (experimental) ```rust fn main() { - let sys = actix::System::new("test"); + let sys = actix_rt::System::new("test"); // load ssl keys let mut builder = SslAcceptor::mozilla_intermediate(SslMethod::tls()).unwrap(); @@ -26,7 +26,7 @@ fn main() { // bind socket address and start workers. By default server uses number of // available logical cpu as threads count. actix net start separate // instances of service pipeline in each worker. - Server::default() + actix_server::build() .bind( // configure service pipeline "basic", "0.0.0.0:8443", diff --git a/actix-server/src/lib.rs b/actix-server/src/lib.rs index 2485793c8..eb506e3cf 100644 --- a/actix-server/src/lib.rs +++ b/actix-server/src/lib.rs @@ -25,3 +25,8 @@ impl Token { token } } + +/// Start server building process +pub fn build() -> ServerBuilder { + ServerBuilder::default() +}