summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2023-04-29 11:02:18 +0000
committerGitHub <noreply@github.com>2023-04-29 11:02:18 +0000
commit11064624be340a04b53233920499a2f4109e0a97 (patch)
tree41660961625eee634ec7a778ddb2f44697a20d39
parent438d3c55349e85bde042734f9e3f874bf5680951 (diff)
parent4c88d7ceadea11d8d51c1545b529de5faa33fc1f (diff)
Merge #227
227: Use modern rust-toolchain.toml format r=matthiasbeyer a=TheNeikos The bare rust-toolchain file is deprecated. This change moves it to the modern format. Co-authored-by: Marcel Müller <neikos@neikos.email>
-rw-r--r--flake.nix2
-rw-r--r--rust-toolchain1
-rw-r--r--rust-toolchain.toml2
3 files changed, 3 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 42ead9c..d32327c 100644
--- a/flake.nix
+++ b/flake.nix
@@ -24,7 +24,7 @@
overlays = [ (import rust-overlay) ];
};
- rustTarget = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain;
+ rustTarget = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
craneLib = (crane.mkLib pkgs).overrideToolchain rustTarget;
tomlInfo = craneLib.crateNameFromCargoToml { cargoToml = ./Cargo.toml; };
diff --git a/rust-toolchain b/rust-toolchain
deleted file mode 100644
index 65ee095..0000000
--- a/rust-toolchain
+++ /dev/null
@@ -1 +0,0 @@
-1.67.0
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
new file mode 100644
index 0000000..969710a
--- /dev/null
+++ b/rust-toolchain.toml
@@ -0,0 +1,2 @@
+[toolchain]
+channel = "1.67.0"