feat: copied from github.com/pmalmgren/wasi-data-sharing
This commit is contained in:
12
examples/wasi/wire.rs
Normal file
12
examples/wasi/wire.rs
Normal 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>,
|
||||
}
|
||||
Reference in New Issue
Block a user