diff --git a/rust-toolchain b/rust-toolchain
deleted file mode 100644
index 2b782427dd79600e74d3c1c88e870a5ca9fa85b2..0000000000000000000000000000000000000000
--- a/rust-toolchain
+++ /dev/null
@@ -1 +0,0 @@
-nightly-2021-06-15
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
new file mode 100644
index 0000000000000000000000000000000000000000..4d97fdddba23eb1ae43c85a38d7c6826da2e24e1
--- /dev/null
+++ b/rust-toolchain.toml
@@ -0,0 +1,3 @@
+[toolchain]
+channel = "nightly-2021-06-15"
+components = ["rust-src"]