mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-22 16:11:38 +03:00
bring back build.rs
This commit is contained in:
parent
e0fc429817
commit
ac49747a52
28
lib/build.rs
28
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");
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user