From c6119661656a7b38c91d28d9cab780095329fbbd Mon Sep 17 00:00:00 2001 From: Fabian Schmidt Date: Fri, 12 Jan 2024 15:54:16 +0100 Subject: [PATCH] Use own plugin --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } -