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

Add support for user-registered host functions #89

Merged
merged 2 commits into from
Mar 21, 2023

Conversation

Officeyutong
Copy link
Contributor

I write a function WasmBpfRunner::register_host_function to allow users registering custom host functions. Corresponding tests are also commited.

  • To make the linking process work, I move the step that links the main module to into_engine_and_entry_func. This does not affect any outer interfaces or functions.
  • The test will calculate the summation of two i32, and verify the result.

@Officeyutong Officeyutong marked this pull request as ready for review March 21, 2023 18:46
@yunwei37 yunwei37 linked an issue Mar 21, 2023 that may be closed by this pull request
@yunwei37
Copy link
Member

Why the building and test CI for rust will run so long? It seems not right....
image

@yunwei37 yunwei37 merged commit e5126f5 into eunomia-bpf:main Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add ability that allow user-registered wasm host functions
2 participants