From fe681f14ed8e761d6162ef3b1e65893305390002 Mon Sep 17 00:00:00 2001 From: tersec Date: Thu, 3 Oct 2024 01:23:24 +0000 Subject: [PATCH 1/2] require Nim 2.0 --- ssz_serialization.nimble | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ssz_serialization.nimble b/ssz_serialization.nimble index 3bd175e..9eca1f9 100644 --- a/ssz_serialization.nimble +++ b/ssz_serialization.nimble @@ -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.0", "serialization", "json_serialization", "stew", @@ -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 From 1da983feeb5754e87ca03a4a9165787ff9375d0e Mon Sep 17 00:00:00 2001 From: tersec Date: Thu, 3 Oct 2024 08:35:13 +0000 Subject: [PATCH 2/2] specifically require 2.0.10 --- ssz_serialization.nimble | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssz_serialization.nimble b/ssz_serialization.nimble index 9eca1f9..b6d9c43 100644 --- a/ssz_serialization.nimble +++ b/ssz_serialization.nimble @@ -7,7 +7,7 @@ description = "Simple Serialize (SSZ) serialization and merkleization" license = "Apache License 2.0" skipDirs = @["tests"] -requires "nim >= 2.0.0", +requires "nim >= 2.0.10", "serialization", "json_serialization", "stew",