add tokio example

Co-authored-by: Alex Crichton <alex@alexcrichton.com>
This commit is contained in:
Pat Hickey
2021-04-13 17:15:31 -07:00
parent 66251c2e78
commit 759019811e
5 changed files with 202 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ tempfile = "3.1.0"
test-programs = { path = "crates/test-programs" }
wasmtime-fuzzing = { path = "crates/fuzzing" }
wasmtime-runtime = { path = "crates/runtime" }
tokio = { version = "1.5.0", features = ["rt", "time", "macros", "rt-multi-thread"] }
tracing-subscriber = "0.2.16"
wast = "35.0.0"
@@ -81,6 +82,7 @@ members = [
"crates/wasi-common/cap-std-async",
"examples/fib-debug/wasm",
"examples/wasi/wasm",
"examples/tokio/wasm",
"fuzz",
]
@@ -108,5 +110,9 @@ maintenance = { status = "actively-developed" }
name = "host_segfault"
harness = false
[[example]]
name = "tokio"
required-features = ["wasmtime-wasi/async"]
[profile.dev.package.backtrace]
debug = false # FIXME(#1813)