nim-secp256k1/secp256k1.nimble

24 lines
566 B
Plaintext
Raw Normal View History

2018-01-05 01:02:25 +00:00
mode = ScriptMode.Verbose
packageName = "secp256k1"
2020-04-17 05:43:30 +00:00
version = "0.2.0"
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"
2018-09-18 14:04:52 +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(name: string, lang: string = "c") =
if not dirExists "build":
mkDir "build"
--run
2019-01-15 11:16:33 +00:00
--threads:on
2018-03-28 10:56:26 +00:00
switch("out", ("./build/" & name))
setCommand lang, "tests/" & name & ".nim"
2020-04-17 05:43:30 +00:00
task test, "Tests":
test "all_tests"