diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-03-25 20:11:01 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-03-25 20:11:01 +0100 |
commit | 149aa37a2eb571ee62e16de64559cdebad483435 (patch) | |
tree | 917e33cc55d459fecb8f57fe349f339e27e724e0 | |
parent | 1cb32749b8b9a889103faa3bf0c763f43f9e0382 (diff) |
Use tokio runtime, not async-std one
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/main.rs | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -33,4 +33,4 @@ config = "0.9" toml = "0.4" hyper = "0.12" itertools = "0.7" -async-std = { version = "1", features = ["attributes"] } +tokio = { version = "0.2", features = ["full"] } diff --git a/src/main.rs b/src/main.rs index e232191..ba0eda5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,7 +18,7 @@ extern crate itertools; #[macro_use] extern crate is_match; #[macro_use] extern crate serde_derive; #[macro_use] extern crate log; -#[macro_use] extern crate async_std; +#[macro_use] extern crate tokio; mod cli_ui; mod configuration; @@ -54,7 +54,7 @@ use crate::types::util::Version; use std::process::exit; -#[async_std::main] +#[tokio::main] async fn main() -> Result<()> { let _ = env_logger::init(); debug!("Logger initialized"); |