Skip to content

Commit b2fc01d

Browse files
authored
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.
1 parent 9439193 commit b2fc01d

File tree

7 files changed

+1858
-3
lines changed

7 files changed

+1858
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,15 @@ jobs:
7070
with:
7171
targets: wasm32-unknown-unknown
7272
components: rust-src
73-
- name: Install wasm-bindgen-cli
73+
- name: Install wasm-bindgen-cli and wasm-pack
7474
run: |
75-
cargo install wasm-bindgen-cli
75+
cargo install wasm-bindgen-cli wasm-pack
76+
- name: Build hf_xet_thin_wasm
77+
working-directory: hf_xet_thin_wasm
78+
run: |
79+
./build_wasm.sh
7680
- name: Build hf_xet_wasm
7781
working-directory: hf_xet_wasm
7882
run: |
7983
./build_wasm.sh
84+

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ members = [
1818
"xet_threadpool",
1919
]
2020

21-
exclude = ["chunk_cache_bench", "hf_xet", "hf_xet_wasm"]
21+
exclude = ["chunk_cache_bench", "hf_xet", "hf_xet_wasm", "hf_xet_thin_wasm"]
2222

2323
[profile.release]
2424
opt-level = 3

hf_xet_thin_wasm/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pkg
2+
target

0 commit comments

Comments
 (0)