Work on plugin builder
This commit is contained in:
parent
53e56f1284
commit
96c2559d2c
5 changed files with 97 additions and 56 deletions
|
@ -1,2 +1,14 @@
|
|||
pub mod wasi;
|
||||
pub use wasi::*;
|
||||
|
||||
// #[cfg(test)]
|
||||
// mod tests {
|
||||
// use super::*;
|
||||
|
||||
// pub fn init_wasi() {
|
||||
// let plugin = WasiPluginBuilder::new().init(todo!()).unwrap();
|
||||
// let handle: WasiFn<u32, String> = plugin.function("hello").unwrap();
|
||||
// let result = plugin.call(handle, 27).unwrap();
|
||||
// assert_eq!(result, "world 27");
|
||||
// }
|
||||
// }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue