- job: amd64-ubuntu2204-container
variables:
IMAGE: ubuntu2204
- CONFIGURE_ARGS: --enable-docs
+ CONFIGURE_ARGS: --enable-docs --enable-rust
TARGETS: alpha-softmmu microblazeel-softmmu mips64el-softmmu
MAKE_CHECK_ARGS: check-build
a newer version using ``cargo install bindgen-cli``.
QEMU requires Rust 1.83.0. This is available on all supported platforms
- with two exception: Ubuntu LTS releases 22.04 and 24.04, and the
- ``mips64el`` architecture on Debian bookworm. For all other
+ except for the ``mips64el`` architecture on Debian bookworm. For all other
architectures, Debian bookworm provides a new-enough Rust compiler
in the ``rustc-web`` package.
- It is expected that in the future Ubuntu will provide updated packages
- like the existing ``rustc-1.82`` package. The path to ``rustc`` and
- ``rustdoc`` will have to be provided manually to the configure script.
+ For Ubuntu 22.04 ("Jammy") and 24.04 ("Noble") updated versions of
+ Rust are available through packages such as ``rustc-1.83`` package;
+ the path to ``rustc`` and ``rustdoc`` has to be provided manually to
+ the configure script.
Some distros prefer to avoid vendored crate sources, and instead use
local sources from e.g. ``/usr/share/cargo/registry``. QEMU includes a
- python3-wheel
- python3-yaml
- rpm2cpio
- - rustc-1.77
+ - rustc-1.83
- sed
- socat
- sparse
- python3-wheel
- python3-yaml
- rpm2cpio
- - rustc-1.77
+ - rustc-1.83
- sed
- socat
- sparse
python3-wheel \
python3-yaml \
rpm2cpio \
- rustc-1.77 \
+ rustc-1.83 \
sed \
socat \
sparse \
ENV MAKE "/usr/bin/make"
ENV NINJA "/usr/bin/ninja"
ENV PYTHON "/usr/bin/python3"
-ENV RUSTC=/usr/bin/rustc-1.77
-ENV RUSTDOC=/usr/bin/rustdoc-1.77
+ENV RUSTC=/usr/bin/rustc-1.83
+ENV RUSTDOC=/usr/bin/rustdoc-1.83
ENV CARGO_HOME=/usr/local/cargo
ENV PATH=$CARGO_HOME/bin:$PATH
RUN DEBIAN_FRONTEND=noninteractive eatmydata \
rust:
Debian12: rustc-web
- Ubuntu2204: rustc-1.77
- Ubuntu2404: rustc-1.77
+ Ubuntu2204: rustc-1.83
+ Ubuntu2404: rustc-1.83
pypi_mappings:
# Request more recent version
]
ubuntu2204_rust_extras = [
- "ENV RUSTC=/usr/bin/rustc-1.77\n",
- "ENV RUSTDOC=/usr/bin/rustdoc-1.77\n",
+ "ENV RUSTC=/usr/bin/rustc-1.83\n",
+ "ENV RUSTDOC=/usr/bin/rustdoc-1.83\n",
"ENV CARGO_HOME=/usr/local/cargo\n",
'ENV PATH=$CARGO_HOME/bin:$PATH\n',
"RUN DEBIAN_FRONTEND=noninteractive eatmydata \\\n",