summaryrefslogtreecommitdiffhomepage
path: root/examples/rust/hello-world/src/lib.rs (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-29examples/rust: Add a minimal hello world rust exampleAndrew Clayton1-0/+41
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>