Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,18 @@ jobs:
- uses: dtolnay/rust-toolchain@5b842231ba77f5c045dba54ac5560fed2db780e2 # stable
with:
toolchain: stable
targets: wasm32-unknown-unknown

- uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2

- name: cargo build
run: cargo build --workspace --all-targets --all-features

- name: cargo build (wasm32)
# Guards the wasm host bridge and its offline subxt surface, which the
# host-target build never compiles.
run: cargo build -p truapi-server --target wasm32-unknown-unknown --no-default-features

- name: cargo +nightly fmt --check
run: cargo +nightly fmt --check

Expand Down
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,4 @@ js/packages/truapi/src/generated/
js/packages/truapi/dist/generated/
js/packages/truapi-host/src/generated/
js/packages/truapi-host/dist/generated/
js/packages/truapi-host-wasm/src/generated/
js/packages/truapi-host-wasm/dist/generated/
js/packages/truapi-host-wasm/dist/wasm/
js/packages/truapi-host/dist/wasm/
6 changes: 4 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ scripts/codegen.sh regenerate the TS client from the Rust crate
- `truapi-server` WASM artifacts live under
`js/packages/truapi-host/dist/wasm/web/` and are gitignored.
Build them locally with `make wasm` (rerun whenever
`rust/crates/truapi-server/` changes); CI builds the bundle fresh from the
Rust source on every run.
`rust/crates/truapi-server/` changes). CI compiles the crate for
`wasm32-unknown-unknown` to guard the wasm bridge and its offline subxt
surface, but does not build or publish the packaged bundle; run `make wasm`
locally before relying on the browser host.

## Code style

Expand Down
Loading