-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This cleans up and hides the implementation details of our syscall binding API. Previously, we passed a wasmtime linker to the `SyscallHandler`. Unfortunately: 1. This exposed implementation details (wasmtime, the InvocationData object type, etc.). 2. The user had to import the `BindSyscall` trait to bind syscalls. I've changed this by: 1. Replacing the `BindSyscall` trait (previously implemented on the "linker") with a `Syscall` trait implemented on all valid "syscall" functions. 2. Exposing an opaque `Linker` type with a `bind_syscall` method instead of exposing the wasmtime linker directly. This lets us change/augment this type later.
- Loading branch information
Showing
6 changed files
with
136 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.