diff --git a/src/main.rs b/src/main.rs index f2492e1..0f6bacd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,14 +1,14 @@ use extism::*; fn main() { - let url = - Wasm::url("https://github.com/extism/plugins/releases/latest/download/count_vowels.wasm"); + // let url = + // Wasm::url("https://github.com/extism/plugins/releases/latest/download/count_vowels.wasm"); + let url = Wasm::file("../plugin/target/wasm32-unknown-unknown/debug/plugin.wasm"); let manifest = Manifest::new([url]); - let mut plugin = Plugin::new(&manifest, [], true).unwrap(); + let mut plugin = Plugin::new(manifest, [], true).unwrap(); let res = plugin .call::<&str, &str>("count_vowels", "Hello, world!") .unwrap(); println!("{}", res); } -