Remove tokio's macros feature

This commit is contained in:
blank X 2020-12-02 11:55:32 +07:00
parent 572c0b8524
commit b4d07aa1ae
3 changed files with 7 additions and 18 deletions

14
Cargo.lock generated
View File

@ -421,7 +421,7 @@ dependencies = [
[[package]]
name = "nhentairs"
version = "0.2.0"
version = "0.2.1"
dependencies = [
"reqwest",
"serde",
@ -778,18 +778,6 @@ dependencies = [
"mio",
"pin-project-lite",
"slab",
"tokio-macros",
]
[[package]]
name = "tokio-macros"
version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f0c3acc6aa564495a0f2e1d59fab677cd7f81a19994cfc7f3ad0e64301560389"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]

View File

@ -1,6 +1,6 @@
[package]
name = "nhentairs"
version = "0.2.0"
version = "0.2.1"
authors = ["blank X <theblankx@protonmail.com>"]
edition = "2018"
@ -13,4 +13,4 @@ lto = true
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
reqwest = { version = "0.10", features = ["stream"] }
tokio = { version = "0.2", features = ["rt-core", "macros", "sync"] }
tokio = { version = "0.2", features = ["rt-core", "sync"] }

View File

@ -4,7 +4,8 @@ mod commands;
extern crate tokio;
#[tokio::main]
async fn main() {
commands::run().await
fn main() {
tokio::runtime::Runtime::new()
.unwrap()
.block_on(commands::run());
}