Refactor ere-zisk (#74)

This commit is contained in:
Han
2025-07-31 23:16:47 +08:00
committed by GitHub
parent e688cbdf8e
commit 1585a77405
3 changed files with 8 additions and 10 deletions

6
Cargo.lock generated
View File

@@ -2455,7 +2455,6 @@ dependencies = [
"bincode",
"blake3",
"build-utils",
"lib-c",
"serde",
"tempfile",
"thiserror 2.0.12",
@@ -3913,11 +3912,6 @@ dependencies = [
"spin",
]
[[package]]
name = "lib-c"
version = "0.9.0"
source = "git+https://github.com/0xPolygonHermez/zisk.git?tag=v0.9.0#efbcdd4dddb39cf410d496358d01ee133a484780"
[[package]]
name = "libc"
version = "0.2.172"

View File

@@ -15,10 +15,6 @@ serde = { version = "1.0", features = ["derive"] }
bincode = "1.3"
blake3 = "1.3.1"
[dev-dependencies]
# Adding this to make sure `lib-c/build.rs` is ran before testing.
lib-c = { git = "https://github.com/0xPolygonHermez/zisk.git", tag = "v0.9.0" }
[build-dependencies]
build-utils = { workspace = true }

View File

@@ -75,3 +75,11 @@ else
echo "Error: 'cargo-zisk-gpu --version' failed." >&2
exit 1
fi
# Step 4: Make sure `lib-c`'s build script is ran.
TEMP_DIR=$(mktemp -d)
cd "$TEMP_DIR"
cargo init . --name build-lib-c
cargo add lib-c --git https://github.com/0xPolygonHermez/zisk.git --tag "v${ZISK_VERSION}"
cargo build
rm -rf "$TEMP_DIR"