zero-to-production/chapter03-0/src/main.rs
2020-08-23 11:53:08 +01:00

9 lines
191 B
Rust

use chapter03_0::run;
use std::net::TcpListener;
#[actix_rt::main]
async fn main() -> std::io::Result<()> {
let address = TcpListener::bind("127.0.0.1:8000")?;
run(address)?.await
}