mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 10:22:19 +00:00
add comment; add wapm.toml
This commit is contained in:
parent
c48171c19e
commit
0f22a515be
12
examples/plugin-for-example/wapm.toml
Normal file
12
examples/plugin-for-example/wapm.toml
Normal 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"
|
@ -10,6 +10,7 @@ fn it_works(_ctx: &mut Ctx) -> i32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
// Load the plugin data
|
||||||
let wasm_bytes = std::fs::read(PLUGIN_LOCATION).expect(&format!(
|
let wasm_bytes = std::fs::read(PLUGIN_LOCATION).expect(&format!(
|
||||||
"Could not read in WASM plugin at {}",
|
"Could not read in WASM plugin at {}",
|
||||||
PLUGIN_LOCATION
|
PLUGIN_LOCATION
|
||||||
|
Loading…
x
Reference in New Issue
Block a user