feat: add wit-bindgen-sample container

This commit is contained in:
2022-07-17 00:06:54 +08:00
parent b0e1a89020
commit 4ba63b4c2e
4 changed files with 1452 additions and 1 deletions

View File

@@ -6,7 +6,8 @@ struct Exports;
impl exports::Exports for Exports {
fn eval_javascript(s: String) -> String {
// let a = container::fetch("");
"".into()
let a = fetch_from_host("<CONFIG>");
format!("eval: {}, fetched: {}", s, a)
}
}