feat: copied from github.com/pmalmgren/wasi-data-sharing

This commit is contained in:
2023-02-04 17:09:09 +08:00
parent d9682a76a6
commit 8d2102387b
9 changed files with 1697 additions and 6 deletions

12
examples/wasi/wire.rs Normal file
View File

@@ -0,0 +1,12 @@
use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Input {
pub name: String,
pub num: i32,
}
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Output {
pub names: Vec<String>,
}