From 9fffe1de17276c1a44de1b2d6991caca6a2d04ac Mon Sep 17 00:00:00 2001 From: rymnc <43716372+rymnc@users.noreply.github.com> Date: Fri, 5 Jul 2024 18:23:07 +0530 Subject: [PATCH] fix: duped makefile abstraction --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4174da0..a463b80 100644 --- a/Makefile +++ b/Makefile @@ -13,11 +13,12 @@ bench: @cargo bench --all-features cp -r target/criterion/** benchmarks/ -generate_c_bindings: +expand: @cargo expand --all-features -p stealth_address_kit > expanded.rs + +generate_c_bindings: expand @cbindgen --output stealth_address_kit.h --lang c expanded.rs -generate_nim_bindings: - @cargo expand --all-features -p stealth_address_kit > expanded.rs +generate_nim_bindings: expand @nbindgen --output stealth_address_kit.nim expanded.rs @sed -i.bak "s/= int/= uint8/g" 'stealth_address_kit.nim'