mirror of
https://github.com/anthonyoteri/dredge.git
synced 2026-06-05 15:26:53 -04:00
Replace async-std with tokio
Tokio is a far more mature async runtime.
This commit is contained in:
+2
-2
@@ -21,7 +21,6 @@ categories = [
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
async-std = { version = "1.12.0", features = ["async-attributes", "attributes", "tokio1"] }
|
||||
clap = { version = "4.4.3", features = ["derive", "env", "wrap_help"] }
|
||||
simple_logger = { version = "4.2.0", features = ["timestamps", "colors", "stderr"] }
|
||||
http = "0.2.9"
|
||||
@@ -35,7 +34,8 @@ thiserror = "1.0.48"
|
||||
toml = "0.8.0"
|
||||
url = { version = "2.4.1", features = ["serde"] }
|
||||
xdg = "2.5.2"
|
||||
tokio = { version = "1.32.0", features = ["macros"] }
|
||||
|
||||
[dev-dependencies]
|
||||
mockito = "1.2.0"
|
||||
env_logger = "0.10.0"
|
||||
env_logger = "0.10.0"
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ fn parse_registry_arg(host: &str) -> Result<Url, DredgeError> {
|
||||
Url::parse(&host).or(Err(DredgeError::RegistryUrlError(host.to_string())))
|
||||
}
|
||||
|
||||
#[async_std::main]
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
async fn main() -> Result<(), DredgeError> {
|
||||
let args = Cli::parse();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user