Replace async-std with tokio

Tokio is a far more mature async runtime.
This commit is contained in:
Anthony Oteri
2023-10-02 13:01:58 -04:00
parent 12dd298706
commit 80d1acf295
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -21,7 +21,6 @@ categories = [
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
async-std = { version = "1.12.0", features = ["async-attributes", "attributes", "tokio1"] }
clap = { version = "4.4.3", features = ["derive", "env", "wrap_help"] } clap = { version = "4.4.3", features = ["derive", "env", "wrap_help"] }
simple_logger = { version = "4.2.0", features = ["timestamps", "colors", "stderr"] } simple_logger = { version = "4.2.0", features = ["timestamps", "colors", "stderr"] }
http = "0.2.9" http = "0.2.9"
@@ -35,6 +34,7 @@ thiserror = "1.0.48"
toml = "0.8.0" toml = "0.8.0"
url = { version = "2.4.1", features = ["serde"] } url = { version = "2.4.1", features = ["serde"] }
xdg = "2.5.2" xdg = "2.5.2"
tokio = { version = "1.32.0", features = ["macros"] }
[dev-dependencies] [dev-dependencies]
mockito = "1.2.0" mockito = "1.2.0"
+1 -1
View File
@@ -57,7 +57,7 @@ fn parse_registry_arg(host: &str) -> Result<Url, DredgeError> {
Url::parse(&host).or(Err(DredgeError::RegistryUrlError(host.to_string()))) Url::parse(&host).or(Err(DredgeError::RegistryUrlError(host.to_string())))
} }
#[async_std::main] #[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), DredgeError> { async fn main() -> Result<(), DredgeError> {
let args = Cli::parse(); let args = Cli::parse();