Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2023-10-17 | examples/rust: Further simplify hello-world | Andrew Clayton | 1 | -4/+0 | |
In this example we don't need the request buf. Signed-off-by: Andrew Clayton <a.clayton@nginx.com> | |||||
2023-09-05 | examples/rust: Slightly simplify hello-world | Andrew Clayton | 1 | -4/+3 | |
There is no need in this case to declare REQUEST_BUF as a global variable. Declaring it local to uwr_request_handler() lets us get rid of the unsafe code blocks. Signed-off-by: Andrew Clayton <a.clayton@nginx.com> | |||||
2023-08-29 | examples/rust: Add a minimal hello world rust example | Andrew Clayton | 1 | -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> |