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]
|
[profile.dev]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
strip = true
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = [
|
crate-type = [
|
||||||
"staticlib", # Ensure it gets compiled as a (static) C library
|
"staticlib", # Ensure it gets compiled as a (static) C library
|
||||||
|
|||||||
@ -1,11 +1,22 @@
|
|||||||
|
|
||||||
import std/os
|
import std/os
|
||||||
|
|
||||||
|
const
|
||||||
|
currentDir = currentSourcePath().parentDir()
|
||||||
|
lib_path* = currentDir/"target"/"release"/"libcodex_storage_proofs.a"
|
||||||
|
|
||||||
static:
|
static:
|
||||||
let pth = currentSourcePath().parentDir()
|
echo "\n==== CODEX:STORAGE:PROOFS: "
|
||||||
echo "\n===="
|
echo "cwd: ", currentDir
|
||||||
echo "CODEX:STORAGE:PROOFS: ", pth
|
echo "lib_path: ", lib_path
|
||||||
# echo "pwd: ", projectDir()
|
# echo "pwd: ", projectDir()
|
||||||
# echo "cwd: ", getCurrentDir()
|
# 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===="
|
echo "\n===="
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user