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

wasmtime: Option to return default values for unknown imports #6010

Merged

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Mar 13, 2023

Similar to the --trap-unknown-imports option, which defines unknown function imports with functions that trap when called, this new --default-values-unknown-imports option defines unknown function imports with a function that returns the default values for the result types (either zero or null depending on the value type).

Similar to the `--trap-unknown-imports` option, which defines unknown function
imports with functions that trap when called, this new
`--default-values-unknown-imports` option defines unknown function imports with
a function that returns the default values for the result types (either zero or
null depending on the value type).
@fitzgen
Copy link
Member Author

fitzgen commented Mar 13, 2023

This allows us to run sightglass benchmarks with the regular wasmtime CLI, which is pretty handy.

@fitzgen fitzgen added this pull request to the merge queue Mar 13, 2023
@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Mar 13, 2023
@github-actions
Copy link

Subscribe to Label Action

cc @peterhuene

This issue or pull request has been labeled: "wasmtime:api"

Thus the following users have been cc'd because of the following labels:

  • peterhuene: wasmtime:api

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

Merged via the queue into bytecodealliance:main with commit 90c9bec Mar 13, 2023
@fitzgen fitzgen deleted the default-values-unknown-imports branch March 13, 2023 22:21
@jameysharp
Copy link
Contributor

Saying this "is pretty handy" is a heck of an understatement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasmtime:api Related to the API of the `wasmtime` crate itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants