nim-secp256k1/secp256k1.nimble

27 lines
720 B
Plaintext
Raw Normal View History

2018-01-05 01:02:25 +00:00
mode = ScriptMode.Verbose
packageName = "secp256k1"
2021-12-27 10:27:55 +00:00
version = "0.5.2"
2018-02-27 17:50:01 +00:00
author = "Status Research & Development GmbH"
2018-01-05 01:02:25 +00:00
description = "A wrapper for the libsecp256k1 C library"
2018-02-27 17:50:01 +00:00
license = "Apache License 2.0"
2020-04-17 06:05:26 +00:00
installDirs = @[".", "secp256k1_wrapper"]
2018-01-05 01:02:25 +00:00
2020-04-17 05:43:30 +00:00
requires "nim >= 1.2.0"
requires "stew"
requires "nimcrypto"
2018-03-28 10:56:26 +00:00
proc test(env, path: string) =
# Compilation language is controlled by TEST_LANG
var lang = "c"
2021-01-07 09:44:23 +00:00
if existsEnv"TEST_LANG":
lang = getEnv"TEST_LANG"
2021-01-07 09:44:23 +00:00
exec "nim " & lang & " " & env &
2021-12-27 10:27:55 +00:00
" -r -f --hints:off --styleCheck:usages --styleCheck:error --skipParentCfg " & path
2018-03-28 10:56:26 +00:00
2020-04-17 05:43:30 +00:00
task test, "Tests":
test "--threads:on", "tests/all_tests"
test "--threads:off", "tests/all_tests"