Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Add a rust-toolchain file #1816

Open
Subsegment opened this issue Apr 22, 2024 · 1 comment
Open

Add a rust-toolchain file #1816

Subsegment opened this issue Apr 22, 2024 · 1 comment

Comments

@Subsegment
Copy link

Add a rust-toolchain file to better guide compilation with the corresponding rust version

Like this:

[toolchain]
# The toolchain used to compile the code
channel = "nightly-2024-01-12"
@robinsdan
Copy link

It compiles on stable and nightly. why need this? I think the only usecases for a toolchain file are:

  • the code uses some nightly features and can not compile on stable, then set toolchain="nightly";
  • the code uses some very unstable nightly features and can only compile on a old nightly version, then set toolchain="nightly-xxxxx"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants