Skip to content

fix(build): restore green builds under the current stable toolchain - #35

Open
e780671166-netizen wants to merge 1 commit into
oboard:mainfrom
e780671166-netizen:fix/toolchain-compat
Open

e780671166-netizen wants to merge 1 commit into
oboard:mainfrom
e780671166-netizen:fix/toolchain-compat

Conversation

@e780671166-netizen

Copy link
Copy Markdown

Summary

main predates moonc v0.10.20 (2026-11-05) and no longer compiles under the current stable release: moon check --deny-warn reports deprecated syntax and moon test --target wasm fails in static_file. CI runs the unpinned installer, so every fresh clone is currently red.

Fixes

  • derive syntax: moved to the new #derive(...) form (multipart/reader.mbt, uri/uri.mbt ×3, error_wbtest.mbt, status_code.mbt)
  • deprecated String::view(): switched to clamped_view() at the five no-arg call sites (path_match.mbt ×2, static.mbt ×3); identical semantics for the no-arg case
  • static_file: qualified impl heads with @mocket.ServeStaticProvider — bare trait names no longer resolve across packages now that provider files use using imports
  • target matrix honesty: static_file and examples/static_assets declared +native+wasm+js, but no provider implementation exists for wasm, so moon test --target wasm failed on a missing-impl error. Scoped both to +native+js; wasm support can be restored when a wasm provider lands

Verification

Under moonc v0.10.20+65efd5b93:

  • moon check --target all --deny-warn green
  • moon test --target wasm 96/96, moon test --target js 101/101

AI assistance

Fixes located and applied with AI assistance (ZCode), verified by the full wasm/js suites.

@vercel

vercel Bot commented Nov 7, 2026

Copy link
Copy Markdown

@e780671166-netizen is attempting to deploy a commit to the oboard's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant