From c8a34ee7608f2cd295ecd0f6ac8db622d9b87dce Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Fri, 18 Apr 2025 15:23:40 +0200 Subject: [PATCH] Set rust toolchain --- .cargo/config.toml | 2 ++ Dockerfile | 2 -- rust-toolchain.toml | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .cargo/config.toml create mode 100644 rust-toolchain.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..7520df8 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[env] +RUSTC_BOOTSTRAP = "1" diff --git a/Dockerfile b/Dockerfile index bd7222e..6c6daba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,8 +16,6 @@ RUN cargo chef cook --release --recipe-path recipe.json COPY . . ARG RELEASE_VERSION ENV RELEASE_VERSION=${RELEASE_VERSION} -# HACK: Enable the use of features on stable -ENV RUSTC_BOOTSTRAP=1 RUN cargo auditable build --release FROM gcr.io/distroless/cc-debian12:nonroot AS runtime diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..5a632b9 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,4 @@ +[toolchain] +channel = "1.85" +profile = "default" +components = ["rust-analyzer"]