Skip to content

Conversation

@alexcrichton
Copy link
Collaborator

I've been trying to dance around doing this and only download WITs at compile time as necessary, but given current integration problems into wasi-sdk I think it's time to just go ahead and vendor the WITs in this repository. The current problem is that the WIT vendoring tool, wkg, does not run in the very-old-Linux-container used to build wasi-sdk. The reason WITs are needed are for the wasm-tools component embed command to embed type information in startup object files.

With this PR the dependency between this embedding and the WIT download process is severed and no longer needed. WITs are vendored much the same way generated bindings are done where the files are present in repo but are checked in CI that they are up-to-date. This means that the files are continuously checked to represent their pristine copies.

I've been trying to dance around doing this and only download WITs at
compile time as necessary, but given current integration problems into
wasi-sdk I think it's time to just go ahead and vendor the WITs in this
repository. The current problem is that the WIT vendoring tool, `wkg`,
does not run in the very-old-Linux-container used to build wasi-sdk. The
reason WITs are needed are for the `wasm-tools component embed` command
to embed type information in startup object files.

With this PR the dependency between this embedding and the WIT download
process is severed and no longer needed. WITs are vendored much the same
way generated bindings are done where the files are present in repo but
are checked in CI that they are up-to-date. This means that the files
are continuously checked to represent their pristine copies.
@alexcrichton alexcrichton merged commit ea2a2cd into WebAssembly:main Jan 29, 2026
28 checks passed
@alexcrichton alexcrichton deleted the vendor-wits branch January 29, 2026 18:00
alexcrichton added a commit to alexcrichton/wasi-libc that referenced this pull request Jan 29, 2026
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.

2 participants