Skip to content

Rust 1.70 #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/container-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
env:
ZEPHYR_VERSION: ${{ matrix.zephyr_version }}
RUST_VERSION: 1.68.0
RUST_VERSION: 1.70.0

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- run: false
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository }}:zephyr-rust-${{ matrix.zephyr_version }}-1.68.0
image: ghcr.io/${{ github.repository }}:zephyr-rust-${{ matrix.zephyr_version }}-1.70.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Zephyr app.

Version Compatibility
=====================
**Zephyr**: v2.3, v2.7.3, v3.4, v3.5, v3.6
**Zephyr**: v2.3, v2.7.3, v3.7. 3.0-3.6 not supported.

**Rust**: exactly 1.68.0
**Rust**: exactly 1.70.0

Please use one of the above Zephyr releases before reporting issues! At the
time you are reading this, Zephyr's main branch will likely not work, though it
is usually one 1-2 minor changes to support a new release. The project aims to
support everything from 2.3 to the present.
support 2.3, the LTS releases, and the latest release.

Features
========
Expand Down Expand Up @@ -79,13 +79,13 @@ included as a submodule of this project. In practice, using a different
compiler version often fails to compile because of Rust internally making heavy
use of unstable compiler features.

The current base is stable-1.68.0. Rustup is the default workflow, and the
The current base is stable-1.70.0. Rustup is the default workflow, and the
rust-toolchain file in this repo should cause rustup to automatically install
and use the right version. If not, manually install:

.. code-block:: console

rustup toolchain install 1.68.0
rustup toolchain install 1.70.0

If supplying your own rustc and cargo, make sure they are the version above.
The build will fail if it detects a version mismatch.
Expand Down
13 changes: 9 additions & 4 deletions ci/Dockerfile.zephyr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:22.04 as zephyr
FROM ubuntu:24.04 AS zephyr

ARG ZEPHYR_VERSION=2.4.0
# Prevent prompts configuring tzdata
Expand All @@ -10,16 +10,21 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \
make gcc gcc-multilib g++-multilib libsdl2-dev

RUN pip3 install -U west
RUN pip3 install --break-system-packages -U west

ENV WEST_BASE=/zephyrproject
ENV ZEPHYR_BASE=${WEST_BASE}/zephyr
WORKDIR ${WEST_BASE}
RUN git clone https://github.com/zephyrproject-rtos/zephyr.git -b v${ZEPHYR_VERSION} --filter=tree:0 ${ZEPHYR_BASE}
# Needed for building as root
RUN if [ "${ZEPHYR_VERSION}" = "2.3.0" ]; then \
cd ${ZEPHYR_BASE}; \
git cherry-pick -n 66d1b3ce10635dd9988898479ce8b8f6516a98df; \
fi
RUN west init -l ${ZEPHYR_BASE}
RUN west update --narrow --fetch-opt=--filter=tree:0

RUN pip3 install -r ${ZEPHYR_BASE}/scripts/requirements.txt
RUN pip3 install --break-system-packages -r ${ZEPHYR_BASE}/scripts/requirements.txt

ADD setup-sdk.sh /setup-sdk.sh
RUN /setup-sdk.sh
Expand All @@ -29,7 +34,7 @@ ENV ZEPHYR_TOOLCHAIN_VARIANT=zephyr
# Rust toolchain stage
FROM zephyr

ARG RUST_VERSION=1.68.0
ARG RUST_VERSION=1.69.0
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
Expand Down
2 changes: 1 addition & 1 deletion ci/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#rm -rf log

ZEPHYR_VERSIONS="3.6.0 3.5.0 3.4.0 2.7.3 2.3.0"
ZEPHYR_VERSIONS="3.7.0 2.7.3 2.3.0"

#parallel \
# -j8 \
Expand Down
2 changes: 1 addition & 1 deletion ci/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

ZEPHYR_RUST="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/.."
RUST_VERSION="$( rustc --version | awk '{print $2}' )"
ZEPHYR_VERSION=${ZEPHYR_VERSION:-2.4.0}
ZEPHYR_VERSION=${ZEPHYR_VERSION:-3.7.0}
# Set CONTAINER_REGISTRY to something like "zephyr-rust:" to use local images
CONTAINER_REGISTRY=${CONTAINER_REGISTRY:-ghcr.io/tylerwhall/zephyr-rust:zephyr-rust-}

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.68.0"
channel = "1.70.0"
profile = "minimal"
2 changes: 1 addition & 1 deletion rust/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

HOST=$(rustc -vV | grep host: | cut -d ' ' -f 2)
CARGO_ARGS="-v build --target=${RUST_TARGET_SPEC} --release"
VERSION="1.68"
VERSION="1.70"
CURRENT_RUSTC_VERSION=$(rustc -vV | grep ^release: | cut -d ' ' -f 2 | cut -d '.' -f '1,2')

# Assert cargo version matches the certified version
Expand Down
2 changes: 1 addition & 1 deletion rust/libc
Submodule libc updated 90 files
+4 −4 .cirrus.yml
+12 −21 .github/workflows/bors.yml
+3 −3 Cargo.toml
+84 −24 build.rs
+2 −2 ci/build.sh
+0 −75 ci/semver.sh
+6 −6 libc-test/Cargo.toml
+382 −32 libc-test/build.rs
+2 −1 libc-test/semver/TODO-unix.txt
+34 −0 libc-test/semver/android.txt
+6 −1 libc-test/semver/apple.txt
+0 −1 libc-test/semver/dragonfly.txt
+1 −0 libc-test/semver/emscripten.txt
+217 −1 libc-test/semver/freebsd.txt
+6 −0 libc-test/semver/fuchsia.txt
+10 −1 libc-test/semver/linux-gnu.txt
+1 −0 libc-test/semver/linux-musl.txt
+126 −1 libc-test/semver/linux.txt
+14 −1 libc-test/semver/netbsd.txt
+1 −1 libc-test/semver/openbsd.txt
+5 −0 libc-test/semver/unix.txt
+4 −0 libc-test/semver/windows.txt
+17 −0 libc-test/test/linux_kernel_version.rs
+6 −1 src/fuchsia/mod.rs
+9 −0 src/lib.rs
+2,314 −0 src/unix/aix/mod.rs
+570 −0 src/unix/aix/powerpc64.rs
+8 −0 src/unix/bsd/apple/long_array.rs
+22 −0 src/unix/bsd/apple/mod.rs
+2 −2 src/unix/bsd/freebsdlike/freebsd/freebsd11/mod.rs
+0 −14 src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs
+0 −17 src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs
+0 −17 src/unix/bsd/freebsdlike/freebsd/freebsd14/mod.rs
+981 −0 src/unix/bsd/freebsdlike/freebsd/mod.rs
+3 −0 src/unix/bsd/freebsdlike/mod.rs
+0 −1 src/unix/bsd/mod.rs
+1 −0 src/unix/bsd/netbsdlike/mod.rs
+63 −1 src/unix/bsd/netbsdlike/netbsd/mod.rs
+3 −1 src/unix/bsd/netbsdlike/openbsd/mod.rs
+11 −1 src/unix/haiku/mod.rs
+0 −1 src/unix/hermit/mod.rs
+11 −0 src/unix/linux_like/android/b32/arm.rs
+11 −0 src/unix/linux_like/android/b32/x86/mod.rs
+36 −0 src/unix/linux_like/android/b64/aarch64/mod.rs
+17 −6 src/unix/linux_like/android/b64/riscv64/mod.rs
+11 −0 src/unix/linux_like/android/b64/x86_64/mod.rs
+42 −3 src/unix/linux_like/android/mod.rs
+5 −4 src/unix/linux_like/emscripten/mod.rs
+36 −5 src/unix/linux_like/linux/align.rs
+2 −2 src/unix/linux_like/linux/arch/generic/mod.rs
+21 −0 src/unix/linux_like/linux/gnu/b32/arm/mod.rs
+1 −1 src/unix/linux_like/linux/gnu/b32/m68k/mod.rs
+2 −0 src/unix/linux_like/linux/gnu/b32/mod.rs
+2 −0 src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs
+2 −0 src/unix/linux_like/linux/gnu/b64/aarch64/ilp32.rs
+2 −0 src/unix/linux_like/linux/gnu/b64/aarch64/lp64.rs
+7 −0 src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs
+2 −0 src/unix/linux_like/linux/gnu/b64/loongarch64/mod.rs
+2 −0 src/unix/linux_like/linux/gnu/b64/mips64/mod.rs
+2 −0 src/unix/linux_like/linux/gnu/b64/powerpc64/mod.rs
+2 −0 src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs
+2 −0 src/unix/linux_like/linux/gnu/b64/s390x.rs
+2 −0 src/unix/linux_like/linux/gnu/b64/sparc64/mod.rs
+1 −0 src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs
+1 −0 src/unix/linux_like/linux/gnu/b64/x86_64/not_x32.rs
+1 −0 src/unix/linux_like/linux/gnu/b64/x86_64/x32.rs
+31 −9 src/unix/linux_like/linux/gnu/mod.rs
+357 −65 src/unix/linux_like/linux/mod.rs
+1 −0 src/unix/linux_like/linux/musl/b32/mod.rs
+2 −0 src/unix/linux_like/linux/musl/b32/riscv32/mod.rs
+1 −0 src/unix/linux_like/linux/musl/b64/mod.rs
+19 −9 src/unix/linux_like/linux/musl/mod.rs
+31 −6 src/unix/linux_like/linux/no_align.rs
+25 −0 src/unix/linux_like/linux/uclibc/arm/mod.rs
+27 −0 src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs
+2 −0 src/unix/linux_like/linux/uclibc/mips/mips64/mod.rs
+18 −0 src/unix/linux_like/linux/uclibc/mips/mod.rs
+3 −0 src/unix/linux_like/linux/uclibc/x86_64/mod.rs
+36 −6 src/unix/linux_like/mod.rs
+133 −61 src/unix/mod.rs
+1 −2 src/unix/newlib/mod.rs
+36 −0 src/unix/nto/aarch64.rs
+3,285 −0 src/unix/nto/mod.rs
+1,288 −0 src/unix/nto/neutrino.rs
+132 −0 src/unix/nto/x86_64.rs
+2 −3 src/unix/solarish/mod.rs
+5 −0 src/vxworks/mod.rs
+10 −1 src/wasi.rs
+5 −1 src/windows/mod.rs
+49 −0 src/xous.rs
2 changes: 1 addition & 1 deletion rust/rust
Submodule rust updated 8845 files
7 changes: 3 additions & 4 deletions rust/sysroot-stage1/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading