We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84bb43a commit 4d2a214Copy full SHA for 4d2a214
versions.toml
@@ -0,0 +1,2 @@
1
+rust = "1.91.1"
2
+rustup = "1.28.2"
x.py
@@ -5,11 +5,18 @@
5
import os
6
import subprocess
7
import sys
8
+import tomllib
9
-rustup_version = "1.28.2"
10
+def load_versions():
11
+ with open("versions.toml", "rb") as f:
12
+ versions = tomllib.load(f)
13
+ rust_version = versions['rust']
14
+ rustup_version = versions['rustup']
15
+ return rust_version, rustup_version
16
17
+rust_version, rustup_version = load_versions()
18
Channel = namedtuple("Channel", ["name", "rust_version"])
-stable = Channel("stable", "1.91.1")
19
+stable = Channel("stable", rust_version)
20
nightly = Channel("nightly", "nightly")
21
supported_channels = [
22
stable,
0 commit comments