-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Right now, you can either turn WASI on or off.
But there is no reason a user of the builder API shouldn't be able to provide their own wasmtime::Linker that defines non-WASI things that the Wasm module can import and use during initialization, or provide just some of WASI, or a virtualized/fake WASI, etc.
This would involve adding a new method to the builder API (
Line 77 in 7c33b0b
| pub struct Wizer { |
Line 241 in 7c33b0b
| impl Wizer { |
wasmtime::Linker and then using that linker instead of creating a new one over here: Line 635 in 7c33b0b
| let mut linker = wasmtime::Linker::new(store.engine()); |
Metadata
Metadata
Assignees
Labels
No labels