2024-01-19 20:29:03 +00:00
|
|
|
# Package
|
|
|
|
|
|
|
|
version = "0.1.0"
|
|
|
|
author = "Dmitriy Ryajov"
|
|
|
|
description = "Nim wrapper for rust circom compat (ark-circom)"
|
|
|
|
license = "MIT"
|
|
|
|
srcDir = "src"
|
|
|
|
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
|
2024-01-19 20:38:02 +00:00
|
|
|
requires "nim >= 1.2.18"
|
2024-01-19 20:29:03 +00:00
|
|
|
|
2024-01-19 20:44:05 +00:00
|
|
|
import std/os
|
|
|
|
|
|
|
|
task genffi, "update the nim ffi bindings":
|
|
|
|
exec "cargo install --git https://github.com/arnetheduck/nbindgen#e80a85f1505d78eeae78ce33b6f406603be27d35 nbindgen"
|
|
|
|
exec "nbindgen -c ./cbindgen.toml vendor/circom-compat-ffi --output circomcompatffi.nim"
|
|
|
|
|
|
|
|
task tests, "run unit tests":
|
|
|
|
exec "nim c -r tests/testcircomcompat.nim"
|