Use multi-threaded runtime and fix rustup installer
This commit is contained in:
parent
e7a3ce4976
commit
b4b6b292d0
|
@ -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"] }
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue