diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2023-08-29 17:01:29 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2023-08-29 20:42:23 +0100 |
commit | 656c03609a2ba480dc88b28ade288b33a4b3a26b (patch) | |
tree | f80d2e76b5f045daaa55ce1f2613f90070b43c7e /src/c/libunit-wasm.c | |
parent | 15b73feec504db5f5381fbfedd7dc15cd8f8c7c9 (diff) | |
download | unit-wasm-656c03609a2ba480dc88b28ade288b33a4b3a26b.tar.gz unit-wasm-656c03609a2ba480dc88b28ade288b33a4b3a26b.tar.bz2 |
examples/rust: Add a minimal hello world rust example
This is about the smallest it can be.
Its Unit application config would look like
"applications": {
"rust-hello-world": {
"type": "wasm",
"module": "/path/to/unit-wasm/examples/rust/hello-world/target/wasm32-wasi/debug/rust_hello_world.wasm",
"request_handler": "uwr_request_handler",
"malloc_handler": "luw_malloc_handler",
"free_handler": "luw_free_handler"
}
}
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/c/libunit-wasm.c')
0 files changed, 0 insertions, 0 deletions