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

19
Cargo.toml Normal file
View File

@@ -0,0 +1,19 @@
[package]
name = "wasi-demo"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[example]]
name = "wasi"
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[dev-dependencies]
anyhow = "1.0.56"
wasmtime = "0.35.2"
wasmtime-wasi = "0.35.2"
wasi-common = "0.35.2"