1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-27 01:37:42 +02:00

take custom system path in actix_rt::main macro (#363)

This commit is contained in:
Ibraheem Ahmed
2021-06-08 12:33:05 -04:00
committed by GitHub
parent 3be3e11aa5
commit 3824493fd3
8 changed files with 80 additions and 3 deletions

View File

@ -0,0 +1,8 @@
mod system {
pub use actix_rt::System as MySystem;
}
#[actix_rt::main(system = "system::MySystem")]
async fn main() {
futures_util::future::ready(()).await
}