From 9fe62d5ad9b20657b22251327414a90ba3cacf18 Mon Sep 17 00:00:00 2001
From: STEVAN Antoine <antoine.stevan@isae-supaero.fr>
Date: Wed, 20 Mar 2024 14:03:21 +0000
Subject: [PATCH] add a Rust toolchain file (dragoon/komodo!39)

fix the toolchain version of Rust with `rust-toolchain.toml`.

this is to avoid having things like `cargo clippy` behaving differently locally and in the remote CI.
> **Note**
> see https://gitlab.isae-supaero.fr/dragoon/komodo/-/jobs/12875 which fails with Rust 1.72 but works locally with Rust 1.75
---
 .gitlab-ci.yml      | 2 +-
 rust-toolchain.toml | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
 create mode 100644 rust-toolchain.toml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index df1871e5..a2b17c8b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,7 +5,7 @@ stages:
   - test
 
 variables:
-  RUSTUP_CHANNEL: "1.72.1"
+  RUSTUP_CHANNEL: "1.75"
   NUSHELL_ARCH: "x86_64-unknown-linux-musl"
   NUSHELL_VERSION: "0.89.0"
 
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
new file mode 100644
index 00000000..f20bfb3f
--- /dev/null
+++ b/rust-toolchain.toml
@@ -0,0 +1,3 @@
+[toolchain]
+profile = "default"
+channel = "1.75"
-- 
GitLab