1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-30 00:14:58 +02:00

re-export actix_rt::main macro (#1559)

This commit is contained in:
Rob Ede
2020-06-18 15:45:30 +01:00
committed by GitHub
parent 0ba73fc44c
commit dc74db1f2f
7 changed files with 10 additions and 6 deletions

View File

@ -16,7 +16,7 @@ async fn no_params() -> &'static str {
"Hello world!\r\n"
}
#[actix_rt::main]
#[actix_web::main]
async fn main() -> std::io::Result<()> {
std::env::set_var("RUST_LOG", "actix_server=info,actix_web=info");
env_logger::init();

View File

@ -1,6 +1,6 @@
use actix_http::Error;
#[actix_rt::main]
#[actix_web::main]
async fn main() -> Result<(), Error> {
std::env::set_var("RUST_LOG", "actix_http=trace");
env_logger::init();

View File

@ -20,7 +20,7 @@ async fn no_params() -> &'static str {
}
#[cfg(unix)]
#[actix_rt::main]
#[actix_web::main]
async fn main() -> std::io::Result<()> {
std::env::set_var("RUST_LOG", "actix_server=info,actix_web=info");
env_logger::init();