-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WASM Build #59
base: main
Are you sure you want to change the base?
WASM Build #59
Conversation
bitner
commented
Feb 12, 2025
- Swap out from Boon to JsonSchema (Boon did not work with wasm) Fixes Switch to jsonschema #46
- Add Wasm package Fixes Expose to WASM #11
- Add Wasm Playground to Docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh, that's hilarious how short wasm/src/lib.rs
is ✨
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed? I thought the default runners come w/ rust...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to install them manually
`export RUSTFLAGS='--cfg getrandom_backend="wasm_js'` | ||
`wasm-pack build` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`export RUSTFLAGS='--cfg getrandom_backend="wasm_js'` | |
`wasm-pack build` | |
```shell | |
scripts/buildwasm | |
``` |
|
||
set -e | ||
|
||
wasm-pack build --no-typescript --target web --out-dir ../docs/pkg wasm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no typescript 🥲 (But actually not really important)
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to install them manually