thin wasm (#411)

Re-adding a thin wasm crate for JS client development.

checks build in ci job build_and_test-wasm

only includes a wrapper over a chunker and function to compute xorb hash
at the moment.
This commit is contained in:
Assaf Vayner
2025-07-15 10:11:38 -07:00
committed by GitHub
parent 9439193f17
commit b2fc01d479
7 changed files with 1858 additions and 3 deletions

View File

@@ -70,10 +70,15 @@ jobs:
with:
targets: wasm32-unknown-unknown
components: rust-src
- name: Install wasm-bindgen-cli
- name: Install wasm-bindgen-cli and wasm-pack
run: |
cargo install wasm-bindgen-cli
cargo install wasm-bindgen-cli wasm-pack
- name: Build hf_xet_thin_wasm
working-directory: hf_xet_thin_wasm
run: |
./build_wasm.sh
- name: Build hf_xet_wasm
working-directory: hf_xet_wasm
run: |
./build_wasm.sh