Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recording compatible runtimes #318

Open
oovm opened this issue Mar 14, 2025 · 0 comments
Open

Recording compatible runtimes #318

oovm opened this issue Mar 14, 2025 · 0 comments

Comments

@oovm
Copy link
Contributor

oovm commented Mar 14, 2025

Motivation

I was working with jsr.io and realized that we might want to document which runtimes each package is compatible with.

Image

For example, if I modify wasmtime and register some LLM-related functions, then such a runtime is a non-wasi standard runtime and needs to use a different interface check.

Such a runtime can be defined with a pure wit exported package, and users can specify such a dependency as the runtime in the meta information, and then other tools can check whether there are missing definitions.

Design

  1. type: "runtime" is a special package type that does not depend on any package and only exports wit.

The meta information of the package can provide the github address of this runtime implementation, etc.

  1. runtime-dependencies: {id: version} can record compatible runtime versions, and tools can download wit definitions for further type checking.
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

No branches or pull requests

1 participant