Work on plugin builder

This commit is contained in:
Isaac Clayton 2022-06-09 10:08:02 +02:00
parent 53e56f1284
commit 96c2559d2c
5 changed files with 97 additions and 56 deletions

View file

@ -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");
// }
// }