Stream: wit-bindgen

Topic: Help with WIT world syntax error


view this post on Zulip Andrew Steurer (Aug 08 2025 at 22:15):

Hi y'all! I'm trying to determine why I'm getting this invalid character error when using wit-bindgen-go:

error: wasm-tools: error: invalid character in identifier '2'
     --> component.wit:295:7
      |
  295 | world wasi-io-WORLD-imports-v020-rc-2023-11-10 {
      |       ^

Based on what I'm reading in the docs, I'm not seeing any issues with using wasi-io-WORLD-imports-v020-rc-2023-11-10 for the world's name. Is there something I'm misunderstanding about proper world syntax?

view this post on Zulip Pat Hickey (Aug 08 2025 at 22:52):

view this post on Zulip Andrew Steurer (Aug 08 2025 at 23:31):

Oh, duh. Thank you @Pat Hickey


Last updated: Dec 06 2025 at 07:03 UTC