From 90a88624b0ea4f5a2b9a4ca0a2b34919c67291ba Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Fri, 22 Dec 2023 18:37:51 -0700 Subject: [PATCH] update build setup --- build.nims | 2 ++ codex/utils/storage_proofs.nim | 2 ++ 2 files changed, 4 insertions(+) diff --git a/build.nims b/build.nims index b752c84e..bac8c3e0 100644 --- a/build.nims +++ b/build.nims @@ -22,6 +22,8 @@ proc test(name: string, srcDir = "tests/", params = "", lang = "c") = exec "build/" & name task buildStorageProofs, "build codex storage proofs": + ## pre-build codex-storage-proofs to cache the first cargo build + ## though `codex-storage-proofs/codex_storage_proofs.nim` calls cargo build again withDir "vendor/codex-storage-proofs/": exec "cargo build --release" buildBinary "storage_proofs", srcDir = "codex/utils/", params = "-f " diff --git a/codex/utils/storage_proofs.nim b/codex/utils/storage_proofs.nim index 4a057fcc..c31f1d23 100644 --- a/codex/utils/storage_proofs.nim +++ b/codex/utils/storage_proofs.nim @@ -2,3 +2,5 @@ import codex_storage_proofs import std/os + +export codex_storage_proofs \ No newline at end of file