zero-to-production/chapter03-0/src/main.rs

9 lines
191 B
Rust
Raw Normal View History

2020-08-23 10:53:08 +00:00
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
2020-08-23 10:34:29 +00:00
}