Skip to content

Commit

Permalink
Bump rust toolchain
Browse files Browse the repository at this point in the history
This toolchain update is done for security reasons. The SGX toolchain has recently introduced a side channel mitigation <rust-lang/rust@97eab4d>
  • Loading branch information
clauverjat committed May 9, 2023
1 parent 50c7ace commit 63f364f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ build-release-enclave:
git \
&& rm -rf /var/lib/apt/lists/* \
&& rustup set profile minimal \
&& rustup default nightly-2023-01-11 \
&& rustup default nightly-2023-05-09 \
&& rustup target add x86_64-fortanix-unknown-sgx

CACHE /usr/local/cargo/git
Expand Down Expand Up @@ -274,7 +274,7 @@ build-release-enclave2:
git \
&& rm -rf /var/lib/apt/lists/* \
&& rustup set profile minimal \
&& rustup default nightly-2023-01-11 \
&& rustup default nightly-2023-05-09 \
&& rustup target add x86_64-fortanix-unknown-sgx

CACHE /usr/local/cargo/git
Expand Down Expand Up @@ -319,7 +319,7 @@ build-release-enclave-local-management:
git \
&& rm -rf /var/lib/apt/lists/* \
&& rustup set profile minimal \
&& rustup default nightly-2023-01-11 \
&& rustup default nightly-2023-05-09 \
&& rustup target add x86_64-fortanix-unknown-sgx

CACHE /usr/local/cargo/git
Expand Down Expand Up @@ -370,7 +370,7 @@ build-release-enclave-local-management2:
git \
&& rm -rf /var/lib/apt/lists/* \
&& rustup set profile minimal \
&& rustup default nightly-2023-01-11 \
&& rustup default nightly-2023-05-09 \
&& rustup target add x86_64-fortanix-unknown-sgx

CACHE /usr/local/cargo/git
Expand Down Expand Up @@ -426,7 +426,7 @@ build-mock-server:
# for better caching
RUN curl -4 'https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init' --output /root/rustup-init && \
chmod +x /root/rustup-init && \
echo '1' | /root/rustup-init --default-toolchain nightly-2023-01-11-x86_64-unknown-linux-gnu && \
echo '1' | /root/rustup-init --default-toolchain nightly-2023-05-09-x86_64-unknown-linux-gnu && \
echo 'source /root/.cargo/env' >> /root/.bashrc && \
rm /root/rustup-init
ENV PATH="/root/.cargo/bin:$PATH"
Expand Down Expand Up @@ -460,7 +460,7 @@ build-release-runner:
FROM rust:1.66.1-slim-bullseye

RUN rustup set profile minimal \
&& rustup default nightly-2023-01-11
&& rustup default nightly-2023-05-09

RUN apt-get update \
&& apt-get install -y --no-install-recommends pkg-config protobuf-compiler libssl-dev curl gnupg software-properties-common \
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 = "nightly-2023-01-11"
channel = "nightly-2023-05-09"
targets = [ "x86_64-fortanix-unknown-sgx" ]

0 comments on commit 63f364f

Please sign in to comment.