Skip to content

Commit

Permalink
fix: duped makefile abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Jul 5, 2024
1 parent 937dcb5 commit 9fffe1d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 9fffe1d

Please sign in to comment.