From c43d579b30a9ff763516fec93c84f1c502ee7516 Mon Sep 17 00:00:00 2001 From: ColumbusLabs <287001685+ColumbusLabs@users.noreply.github.com> Date: Wed, 12 Aug 2026 11:37:44 -0400 Subject: [PATCH] ci: add typos-cli spelling check --- .github/workflows/typos.yml | 18 ++++++++++++++++++ _typos.toml | 2 ++ .../using-http-in-components/rust.md | 2 +- .../using-wit-resources/rust.md | 2 +- 4 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/typos.yml create mode 100644 _typos.toml diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml new file mode 100644 index 00000000..da7aaf3c --- /dev/null +++ b/.github/workflows/typos.yml @@ -0,0 +1,18 @@ +name: typos + +on: + pull_request: + push: + branches: [main] + +permissions: + contents: read + +jobs: + typos: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Check spelling + uses: crate-ci/typos@8a48f81b6c64dcfea44b3633223084c4be58ac5f # v1.49.0 diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 00000000..bb625279 --- /dev/null +++ b/_typos.toml @@ -0,0 +1,2 @@ +[default.extend-words] +BA = "BA" diff --git a/component-model/src/language-support/using-http-in-components/rust.md b/component-model/src/language-support/using-http-in-components/rust.md index 3f2677f4..533b469c 100644 --- a/component-model/src/language-support/using-http-in-components/rust.md +++ b/component-model/src/language-support/using-http-in-components/rust.md @@ -17,7 +17,7 @@ curl https://wasmtime.dev/install.sh -sSf | bash [wasmtime]: https://github.com/bytecodealliance/wasmtime#installation -## 2. Creating a Rust WebAssemly project +## 2. Creating a Rust WebAssembly project Create a new Rust project with `cargo new`: diff --git a/component-model/src/language-support/using-wit-resources/rust.md b/component-model/src/language-support/using-wit-resources/rust.md index fe8ad785..0dfb7ccf 100644 --- a/component-model/src/language-support/using-wit-resources/rust.md +++ b/component-model/src/language-support/using-wit-resources/rust.md @@ -160,7 +160,7 @@ Building the component as is creates a WebAssembly component with an *unsatisfie After building the component, it must be [composed with a `.wasm` component that implements the resource.](../../composing-and-distributing/composing.md). After composition creates a component with no unsatisfied imports, the composed command component can be run with `wasmtime run`. Alternatively, a host that can provide the `docs:rpn/types` import (and related resource) can also be used to run the component -in it's "incomplete" state (as the host will "complete" the componnt by providing the expected import). +in it's "incomplete" state (as the host will "complete" the component by providing the expected import). ## Implementing and exporting a resource implementation in a host