Use multi-threaded runtime and fix rustup installer

This commit is contained in:
Michael Pfaff 2022-11-08 09:24:05 -05:00
parent e7a3ce4976
commit b4b6b292d0
Signed by: michael
GPG Key ID: CF402C4A012AA9D4
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,7 @@ ramhorns = "0.14"
reqwest = { version = "0.11.10", features = ["json"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1.19", features = ["fs", "macros", "process", "rt"] }
tokio = { version = "1.19", features = ["fs", "macros", "process", "rt", "rt-multi-thread"] }
url = "2.2"
windows-sys = { version = "0.42", features = ["Win32_Foundation", "Win32_System_Registry", "Win32_System_WindowsProgramming"] }

View File

@ -43,7 +43,8 @@ pub struct Context {
pub reqwest: reqwest::Client,
}
#[tokio::main(flavor = "current_thread")]
//#[tokio::main(flavor = "current_thread")]
#[tokio::main]
async fn main() -> Result<()> {
println!("Bootstrapping...");
@ -227,6 +228,7 @@ async fn main() -> Result<()> {
Step::ExecuteCommand {
file: rustup_init.into(),
args: &[
"-y",
"--default-host",
"x86_64-pc-windows-gnu",
"--default-toolchain",