diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2023-09-25 13:19:31 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2023-09-25 17:39:51 +0100 |
commit | e4a868078ab43772e36cd8ffc59fd995353fb402 (patch) | |
tree | 1ab9f9f2430822154e39259eaf07e76879a1178a /examples/rust/Makefile | |
parent | c3ea7bbe122c87abd7114a770144e114e2ce927e (diff) | |
download | unit-wasm-e4a868078ab43772e36cd8ffc59fd995353fb402.tar.gz unit-wasm-e4a868078ab43772e36cd8ffc59fd995353fb402.tar.bz2 |
examples: Add C and Rust examples of handling large uploads
The programs demonstrate handling requests with payloads larger than
4GiB which means they need to be written out to disk and so also
demonstrates the use of the file-system access mechanism.
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'examples/rust/Makefile')
-rw-r--r-- | examples/rust/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/rust/Makefile b/examples/rust/Makefile index a000c9c..3d2570d 100644 --- a/examples/rust/Makefile +++ b/examples/rust/Makefile @@ -2,7 +2,10 @@ include ../../shared.mk SDIR = examples/rust -examples: rust-echo-request rust-upload-reflector rust-hello-world +examples: rust-echo-request \ + rust-upload-reflector \ + rust-hello-world \ + rust-large-upload rust-echo-request: echo-request/Cargo.toml echo-request/src/lib.rs $(PP_GEN) $(SDIR)/echo-request/target/wasm32-wasi/ @@ -16,6 +19,10 @@ rust-hello-world: hello-world/Cargo.toml hello-world/src/lib.rs $(PP_GEN) $(SDIR)/hello-world/target/wasm32-wasi/ $(v)cd hello-world; cargo build --target=wasm32-wasi +rust-large-upload: large-upload/Cargo.toml large-upload/src/lib.rs + $(PP_GEN) $(SDIR)/large-upload/target/wasm32-wasi/ + $(v)cd large-upload; cargo build --target=wasm32-wasi + clean: rm -f */Cargo.lock rm -rf */target |