mirror of
https://github.com/logos-storage/logos-storage-proofs.git
synced 2026-01-02 13:33:10 +00:00
initial setup
This commit is contained in:
parent
fc94ccde7b
commit
44d8e3a22c
@ -6,6 +6,9 @@ edition = "2021"
|
||||
[profile.dev]
|
||||
opt-level = 3
|
||||
|
||||
[profile.release]
|
||||
strip = true
|
||||
|
||||
[lib]
|
||||
crate-type = [
|
||||
"staticlib", # Ensure it gets compiled as a (static) C library
|
||||
|
||||
@ -1,11 +1,22 @@
|
||||
|
||||
import std/os
|
||||
|
||||
const
|
||||
currentDir = currentSourcePath().parentDir()
|
||||
lib_path* = currentDir/"target"/"release"/"libcodex_storage_proofs.a"
|
||||
|
||||
static:
|
||||
let pth = currentSourcePath().parentDir()
|
||||
echo "\n===="
|
||||
echo "CODEX:STORAGE:PROOFS: ", pth
|
||||
echo "\n==== CODEX:STORAGE:PROOFS: "
|
||||
echo "cwd: ", currentDir
|
||||
echo "lib_path: ", lib_path
|
||||
# echo "pwd: ", projectDir()
|
||||
# echo "cwd: ", getCurrentDir()
|
||||
let cmd = "pwd && cargo build --release"
|
||||
echo "\nBuilding codex-storage-proofs: " & cmd
|
||||
let (output, exitCode) = gorgeEx cmd
|
||||
echo output
|
||||
if exitCode != 0:
|
||||
# discard gorge "rm -rf " & buildDir
|
||||
raise (ref Defect)(msg: "Failed to build codex-storage-proofs")
|
||||
|
||||
echo "\n===="
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user