add tokio example
Co-authored-by: Alex Crichton <alex@alexcrichton.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user