From ac49747a52f0f617e0d781f7f395c2293691cb8e Mon Sep 17 00:00:00 2001 From: dr-frmr Date: Fri, 14 Jun 2024 01:22:30 -0400 Subject: [PATCH] bring back build.rs --- lib/build.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/build.rs b/lib/build.rs index 5c36ac9b..9f62fd1c 100644 --- a/lib/build.rs +++ b/lib/build.rs @@ -12,21 +12,21 @@ fn main() { let pwd = std::env::current_dir().expect("Failed to get current directory"); - // let wit_file = pwd.join("wit-v0.7.0").join("kinode.wit"); + let wit_file = pwd.join("wit-v0.7.0").join("kinode.wit"); - // let rt = tokio::runtime::Runtime::new().unwrap(); - // rt.block_on(async { - // kit::build::download_file(KINODE_WIT_0_7_0_URL, &wit_file) - // .await - // .expect("Failed to download WIT 0.7"); - // }); + let rt = tokio::runtime::Runtime::new().unwrap(); + rt.block_on(async { + kit::build::download_file(KINODE_WIT_0_7_0_URL, &wit_file) + .await + .expect("Failed to download WIT 0.7"); + }); - // let wit_file = pwd.join("wit-v0.8.0").join("kinode.wit"); + let wit_file = pwd.join("wit-v0.8.0").join("kinode.wit"); - // let rt = tokio::runtime::Runtime::new().unwrap(); - // rt.block_on(async { - // kit::build::download_file(KINODE_WIT_0_8_0_URL, &wit_file) - // .await - // .expect("Failed to download WIT 0.8"); - // }) + let rt = tokio::runtime::Runtime::new().unwrap(); + rt.block_on(async { + kit::build::download_file(KINODE_WIT_0_8_0_URL, &wit_file) + .await + .expect("Failed to download WIT 0.8"); + }) }