From 841550bb262fa2556e7b642ba35c3e2a94e99370 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Fri, 19 Jan 2024 14:44:05 -0600 Subject: [PATCH] move contents of build.nims to nimble --- build.nims | 8 -------- circomcompat.nimble | 9 ++++++++- 2 files changed, 8 insertions(+), 9 deletions(-) delete mode 100644 build.nims diff --git a/build.nims b/build.nims deleted file mode 100644 index c5924a3..0000000 --- a/build.nims +++ /dev/null @@ -1,8 +0,0 @@ -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" diff --git a/circomcompat.nimble b/circomcompat.nimble index 143b5b3..47f46ad 100644 --- a/circomcompat.nimble +++ b/circomcompat.nimble @@ -11,4 +11,11 @@ srcDir = "src" requires "nim >= 1.2.18" -include "build.nims" \ No newline at end of file +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"