Skip to content

Commit dc25b5a

Browse files
Merge pull request #97 from aave/scripts/rust-building
scripts: add rust bindings generations
2 parents c5bdb40 + eb6dacc commit dc25b5a

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 'test/**/*.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)