Fix minor issues pointed out in the review
This commit is contained in:
parent
3ad8d5363c
commit
ec327a30c3
17 changed files with 293 additions and 270 deletions
|
@ -16,7 +16,9 @@ use wasmtime_wasi::{Dir, WasiCtx, WasiCtxBuilder};
|
|||
/// Represents a resource currently managed by the plugin, like a file descriptor.
|
||||
pub struct PluginResource(u32);
|
||||
|
||||
#[repr(C)]
|
||||
/// This is the buffer that is used Host side.
|
||||
/// Note that it mirrors the functionality of
|
||||
/// the `__Buffer` found in the `plugin/src/lib.rs` prelude.
|
||||
struct WasiBuffer {
|
||||
ptr: u32,
|
||||
len: u32,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue