Docker: Bump rust version to 1.76.0

The minimum version required to build wasmtime 17 which is required by
wasm-wasi-component is 1.73.0

But no point not using the latest version.

This also now needs the libclang-dev package installed, we install this
via MODULE_PREBUILD_wasm.

Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
This commit is contained in:
Andrew Clayton
2024-02-21 12:49:48 +00:00
parent 4e6d7e8768
commit 7702293dda

View File

@@ -81,7 +81,8 @@ CONFIGURE_wasm ?= wasm --include-path=\`pwd\`/pkg/contrib/wasmtime/crates/c-api/
INSTALL_wasm ?= wasm-install INSTALL_wasm ?= wasm-install
RUN_wasm ?= /bin/true RUN_wasm ?= /bin/true
define MODULE_PREBUILD_wasm define MODULE_PREBUILD_wasm
export RUST_VERSION=1.71.0 \\\n \ apt-get install --no-install-recommends --no-install-suggests -y libclang-dev \\\n \
\ \ \ \&\& export RUST_VERSION=1.76.0 \\\n \
\ \ \ \&\& export RUSTUP_HOME=/usr/src/unit/rustup \\\n \ \ \ \ \&\& export RUSTUP_HOME=/usr/src/unit/rustup \\\n \
\ \ \ \&\& export CARGO_HOME=/usr/src/unit/cargo \\\n \ \ \ \ \&\& export CARGO_HOME=/usr/src/unit/cargo \\\n \
\ \ \ \&\& export PATH=/usr/src/unit/cargo/bin:\$$PATH \\\n \ \ \ \ \&\& export PATH=/usr/src/unit/cargo/bin:\$$PATH \\\n \