add comment; add wapm.toml

This commit is contained in:
Mark McCaskey 2019-04-29 11:33:03 -07:00
parent c48171c19e
commit 0f22a515be
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,12 @@
[package]
name = "plugin-for-example"
version = "0.1.0"
description = "A plugin for our example system"
readme = "README.md"
repository = "https://github.com/wasmerio/wasmer/examples/plugin-for-example"
license = "MIT"
[[module]]
name = "plugin-for-example"
source = "../../target/wasm32-unknown-wasi/release/plugin-for-example.wasm"
abi = "none"

View File

@ -10,6 +10,7 @@ fn it_works(_ctx: &mut Ctx) -> i32 {
}
fn main() {
// Load the plugin data
let wasm_bytes = std::fs::read(PLUGIN_LOCATION).expect(&format!(
"Could not read in WASM plugin at {}",
PLUGIN_LOCATION