-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: generate types with wit and update scripts to use the new types
- Loading branch information
1 parent
e55bac8
commit 325d570
Showing
20 changed files
with
1,691 additions
and
683 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -e | ||
cargo install --git https://github.com/ahalabs/witgen --rev 1aca670c8c4589a214a7e9e1e79bd9a89001870e cargo-witgen | ||
cargo install --git https://github.com/ahalabs/wit-bindgen --rev fe43a371d31d8875b0856de5a954f537fe71f7cd wit-bindgen-cli | ||
# cargo install --path ~/c/wit-bindgen | ||
|
||
cargo witgen generate --prefix-file ./sdk.wit | ||
wit-bindgen js-near -i ./witgen.wit --out-dir res/ | ||
mv res/witgen.ts res/index.ts | ||
tsc |
Oops, something went wrong.