Skip to content

Custom imports based around wit files#18

Merged
psilva261 merged 2 commits intomasterfrom
psilva261/wit-imports
Feb 19, 2026
Merged

Custom imports based around wit files#18
psilva261 merged 2 commits intomasterfrom
psilva261/wit-imports

Conversation

@psilva261
Copy link
Copy Markdown
Collaborator

  • Dotnet: swap out unmanaged code based imports with interface definitions from WIT files
  • Go: adapt naming conventions
  • Update docs

This seems to be a much cleaner way to handle imports. Also it's very much the definition language for the standardized WASI functions. So far I've seen only one issue where "unsigned" gets dropped but there's a simple workaround. Also it's still necessary to patch the WIT files to drop the wasip2 package names

The same approach is also used by componentize-dotnet (and therefore wit-bindgen) but the advantage is including it this way is more language neutral and it doesn't introduce another dependency

* Dotnet: swap out unmanaged code based imports with interface
  definions from WIT files
* Go: adapt naming conventions
* Update docs
@psilva261 psilva261 force-pushed the psilva261/wit-imports branch from 6500883 to 859c92f Compare February 5, 2026 17:14
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 5, 2026

Benchmark Results (65ec0fd)

Language native w2c2-O0 w2c2-O1 wamr wasmer wasmtime
stateless 234920269 12773967873 N/A 5432827175 949796459 867084623
reva-client-eth 387779160 7792242466 1424063254 N/A N/A 1028057870

@kevaundray
Copy link
Copy Markdown
Contributor

CC @marcinbugaj can you take a look?

@github-actions
Copy link
Copy Markdown

Benchmark Results (deb0861)

Language native w2c2-O0 w2c2-O3 wamr wasmer wasmtime
stateless 234401737 6070656784 N/A 5432827175 949899628 865452694
reva-client-eth 387742134 4472368224 1378374054 N/A N/A 1028136563

@marcinbugaj
Copy link
Copy Markdown
Collaborator

LGTM

@psilva261 psilva261 merged commit 106b8ad into master Feb 19, 2026
1 check passed
@psilva261 psilva261 deleted the psilva261/wit-imports branch February 19, 2026 13:17
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.

3 participants