nim-eth-keys/eth_keys.nimble

37 lines
1.1 KiB
Plaintext
Raw Normal View History

packageName = "eth_keys"
version = "0.0.2"
2018-02-08 09:51:13 +00:00
author = "Status Research & Development GmbH"
description = "A reimplementation in pure Nim of eth-keys, the common API for Ethereum key operations."
2018-03-02 10:57:43 +00:00
license = "Apache License 2.0 or MIT"
# srcDir = "src"
skipDirs = @["src", "tests", "Nim"]
2018-02-08 09:51:13 +00:00
### Dependencies
requires "nim > 0.18.0", "nimcrypto", "secp256k1"
2018-02-08 09:51:13 +00:00
proc test(name: string, lang: string = "c") =
2018-02-08 09:51:13 +00:00
if not dirExists "build":
mkDir "build"
2018-02-08 09:51:13 +00:00
if not dirExists "nimcache":
mkDir "nimcache"
--run
--nimcache: "nimcache"
switch("out", ("./build/" & name))
setCommand lang, "tests/" & name & ".nim"
task test, "Run all tests - C only & libsecp256k1 backend":
test "tests"
# task test_cpp, "Run all tests - C++ only & libsecp256k1 backend":
# test "all_tests", "cpp"
# task test, "Run all tests - C and C++ & libsecp256k1 backend":
# exec "nimble test_c"
# exec "rm ./nimcache/*"
# exec "nimble test_cpp"
2018-03-21 16:59:50 +00:00
# task test_backend_native, "Run all tests - pure Nim backend":
# switch("define", "backend_native")
# test "all_tests", "cpp"