Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require Nim 2.0 #97

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions ssz_serialization.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = "Simple Serialize (SSZ) serialization and merkleization"
license = "Apache License 2.0"
skipDirs = @["tests"]

requires "nim >= 1.6.0",
requires "nim >= 2.0.10",
"serialization",
"json_serialization",
"stew",
Expand Down Expand Up @@ -35,16 +35,14 @@ proc build(args, path: string) =

proc run(args, path: string) =
build args & " --mm:refc -r", path
if (NimMajor, NimMinor) > (1, 6):
build args & " --mm:orc -r", path
build args & " --mm:orc -r", path

task test, "Run all tests":
for blst in [false, true]:
for hashtree in [false, true]:
let opts = "--threads:on -d:PREFER_BLST_SHA256=" & $blst & " -d:PREFER_HASHTREE_SHA256=" & $hashtree
run "--mm:refc " & opts, "tests/test_all"
if (NimMajor, NimMinor) > (1, 6):
run "--mm:orc " & opts, "tests/test_all"
run "--mm:orc " & opts, "tests/test_all"

task fuzzHashtree, "Run fuzzing test":
# TODO We don't run because the timeout parameter doesn't seem to work so
Expand Down