From e4a868078ab43772e36cd8ffc59fd995353fb402 Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Mon, 25 Sep 2023 13:19:31 +0100 Subject: 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 --- examples/rust/large-upload/Cargo.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 examples/rust/large-upload/Cargo.toml (limited to 'examples/rust/large-upload/Cargo.toml') diff --git a/examples/rust/large-upload/Cargo.toml b/examples/rust/large-upload/Cargo.toml new file mode 100644 index 0000000..b74192e --- /dev/null +++ b/examples/rust/large-upload/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "rust-large-upload" +version = "0.2.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +unit-wasm = { path = "../../../src/rust", version = "0.2.0" } + +[lib] +crate-type = ["cdylib"] -- cgit