From ed211302180c36cac181b2978dbd469631b3db70 Mon Sep 17 00:00:00 2001 From: Pascal Berrang Date: Fri, 29 Nov 2024 14:13:47 -0600 Subject: [PATCH] Fix CI --- .github/workflows/test.yml | 5 ++--- .github/workflows/toc.yml | 8 -------- README.md | 12 +++++++++--- 3 files changed, 11 insertions(+), 14 deletions(-) delete mode 100644 .github/workflows/toc.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5f4d350..508ca0f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,9 +11,8 @@ jobs: - name: Install npm working-directory: ./test run: npm ci - - name: Trigger toolchain installation - working-directory: ./test - run: cargo fetch + - name: Install wasm-pack + run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - name: Run tests working-directory: ./test run: npm test diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml deleted file mode 100644 index 8481c7e..0000000 --- a/.github/workflows/toc.yml +++ /dev/null @@ -1,8 +0,0 @@ -on: push -name: TOC Generator -jobs: - generateTOC: - name: TOC Generator - runs-on: ubuntu-latest - steps: - - uses: technote-space/toc-generator@v4 diff --git a/README.md b/README.md index 7b3e39f..cce264b 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,14 @@ `wasmworker` is a library that provides easy access to parallelization on web targets when compiled to WebAssembly using [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen). In contrast to many other libraries like [wasm-bindgen-rayon](https://github.com/RReverser/wasm-bindgen-rayon), this library does not require SharedArrayBuffer support. - - +- [Usage](#usage) + - [Setting up](#setting-up) + - [Outsourcing tasks](#outsourcing-tasks) + - [WebWorker](#webworker) + - [WorkerPool](#workerpool) + - [Iterator extension](#iterator-extension) + - [Feature detection](#feature-detection) +- [FAQ](#faq) ## Usage The library consists of two crates: @@ -40,7 +46,7 @@ async fn startup() { } ``` -### Outsourcing tasks to a web worker +### Outsourcing tasks The library offers three ways of outsourcing function calls onto concurrent workers: 1. `WebWorker`: a single worker, to which tasks can be queued to. 2. `WorkerPool`: a pool of multiple workers, to which tasks are distributed.