summaryrefslogtreecommitdiffhomepage
path: root/pkg/docker
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-02-21 12:49:48 +0000
committerAndrew Clayton <a.clayton@nginx.com>2024-02-21 16:20:32 +0000
commit7702293dda8ed73cd2cc616f9a339212b4386707 (patch)
tree0ef41dfb74224c076e97542f6c5918d502f283f5 /pkg/docker
parent4e6d7e87685c30a62a654fc91e271d34dd642202 (diff)
downloadunit-7702293dda8ed73cd2cc616f9a339212b4386707.tar.gz
unit-7702293dda8ed73cd2cc616f9a339212b4386707.tar.bz2
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>
Diffstat (limited to 'pkg/docker')
-rw-r--r--pkg/docker/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/docker/Makefile b/pkg/docker/Makefile
index 102d0a05..c7a5f1ee 100644
--- a/pkg/docker/Makefile
+++ b/pkg/docker/Makefile
@@ -81,7 +81,8 @@ CONFIGURE_wasm ?= wasm --include-path=\`pwd\`/pkg/contrib/wasmtime/crates/c-api/
INSTALL_wasm ?= wasm-install
RUN_wasm ?= /bin/true
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 CARGO_HOME=/usr/src/unit/cargo \\\n \
\ \ \ \&\& export PATH=/usr/src/unit/cargo/bin:\$$PATH \\\n \