Fix wasm example crates.

This commit is contained in:
losfair 2019-05-14 16:52:09 +08:00
parent d60e2377c1
commit 98dd2c0289
5 changed files with 20 additions and 1 deletions

View File

@ -36,7 +36,7 @@ wasmer-wasi = { path = "lib/wasi", optional = true }
kwasm-loader = { path = "lib/kwasm-loader", optional = true } kwasm-loader = { path = "lib/kwasm-loader", optional = true }
[workspace] [workspace]
members = ["lib/clif-backend", "lib/singlepass-backend", "lib/runtime", "lib/runtime-abi", "lib/runtime-core", "lib/emscripten", "lib/spectests", "lib/win-exception-handler", "lib/runtime-c-api", "lib/llvm-backend", "lib/wasi", "lib/middleware-common", "lib/kwasm-loader", "lib/kwasm-net", "examples/pipe", "examples/wasi-networking", "examples/http-server", "examples/plugin-for-example"] members = ["lib/clif-backend", "lib/singlepass-backend", "lib/runtime", "lib/runtime-abi", "lib/runtime-core", "lib/emscripten", "lib/spectests", "lib/win-exception-handler", "lib/runtime-c-api", "lib/llvm-backend", "lib/wasi", "lib/middleware-common", "lib/kwasm-loader", "lib/kwasm-net", "examples/plugin-for-example"]
[build-dependencies] [build-dependencies]
wabt = "0.7.2" wabt = "0.7.2"

13
examples/http-server/Cargo.lock generated Normal file
View File

@ -0,0 +1,13 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "http-server"
version = "0.1.0"
dependencies = [
"kwasm-net 0.1.0",
]
[[package]]
name = "kwasm-net"
version = "0.1.0"

View File

@ -6,5 +6,7 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
[dependencies] [dependencies]
kwasm-net = { path = "../../lib/kwasm-net" } kwasm-net = { path = "../../lib/kwasm-net" }

View File

@ -4,4 +4,6 @@ version = "0.1.0"
authors = ["Heyang Zhou <zhy20000919@hotmail.com>"] authors = ["Heyang Zhou <zhy20000919@hotmail.com>"]
edition = "2018" edition = "2018"
[workspace]
[dependencies] [dependencies]

View File

@ -4,5 +4,7 @@ version = "0.1.0"
authors = ["Heyang Zhou <zhy20000919@hotmail.com>"] authors = ["Heyang Zhou <zhy20000919@hotmail.com>"]
edition = "2018" edition = "2018"
[workspace]
[dependencies] [dependencies]
kwasm-net = { path = "../../lib/kwasm-net" } kwasm-net = { path = "../../lib/kwasm-net" }