2018-12-01 19:12:05 +00:00
|
|
|
packageName = "constantine"
|
2018-07-24 14:52:18 +00:00
|
|
|
version = "0.0.1"
|
|
|
|
author = "Status Research & Development GmbH"
|
2018-09-05 04:38:34 +00:00
|
|
|
description = "This library provides constant time big int primitives."
|
2018-07-24 14:52:18 +00:00
|
|
|
license = "MIT or Apache License 2.0"
|
|
|
|
srcDir = "src"
|
|
|
|
|
|
|
|
### Dependencies
|
2020-02-08 23:52:24 +00:00
|
|
|
requires "nim >= 1.0.6"
|
2018-07-24 14:52:18 +00:00
|
|
|
|
|
|
|
### Helper functions
|
2020-02-08 23:52:24 +00:00
|
|
|
proc test(fakeCurves: string, path: string, lang = "c") =
|
2018-07-24 14:52:18 +00:00
|
|
|
if not dirExists "build":
|
|
|
|
mkDir "build"
|
2020-02-08 23:52:24 +00:00
|
|
|
exec "nim " & lang & fakeCurves & " --outdir:build -r --hints:off --warnings:off " & path
|
2018-07-24 14:52:18 +00:00
|
|
|
|
|
|
|
### tasks
|
|
|
|
task test, "Run all tests":
|
2020-02-09 15:22:55 +00:00
|
|
|
test "", "tests/test_primitives.nim"
|
2020-02-16 10:29:27 +00:00
|
|
|
test "", "tests/test_io_bigints.nim"
|
2020-02-09 00:03:06 +00:00
|
|
|
test "", "tests/test_bigints.nim"
|
2020-02-10 21:19:47 +00:00
|
|
|
test "", "tests/test_bigints_multimod.nim"
|
2020-02-12 20:57:39 +00:00
|
|
|
test "", "tests/test_bigints_vs_gmp.nim"
|
2020-02-14 23:26:40 +00:00
|
|
|
test "", "tests/test_finite_fields.nim"
|
2020-02-16 23:13:42 +00:00
|
|
|
test "", "tests/test_finite_fields_vs_gmp.nim"
|