Skip to content

Commit 4c27436

Browse files
committed
scripts: add rust bindings generations
1 parent c5bdb40 commit 4c27436

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
"Mark Hinschberger <[email protected]>"
2222
],
2323
"scripts": {
24-
"lint": "prettier --write **.sol"
24+
"lint": "prettier --write **.sol",
25+
"rs:bind": "forge bind --bindings-path ./out/__BINDINGS__ --alloy --skip 'test/**/*.sol'",
26+
"rs:abis": "forge build --out ./out/__FOLDER_ABIS__ --skip 'tests/**/*.sol' --extra-output-files abi && rm -rf ./out/__ABIS__ && mkdir -p ./out/__ABIS__ && find ./out/__FOLDER_ABIS__ -name '*.abi.json' -exec cp {} ./out/__ABIS__/ \\;",
27+
"rs:generate": "npm run rs:bind && npm run rs:abis"
2528
}
2629
}

0 commit comments

Comments
 (0)