Skip to content

Commit 9de13bc

Browse files
committed
Add rust-toolchain file and replace cargo with rustup
- Avoid issue of compiling project with an older version of compiler and getting error due to new API such as `Option::as_deref`. - Will download and use binaries from rust-lang.org based on specified version in rust-toolchain. This avoid the issue that compiler loads plugin using different versions of glibc/ld than the ones used to produce the plugin. See rust-lang/rust#58394
1 parent dcdd3e4 commit 9de13bc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

rust-toolchain

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.45.0

shell.nix

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ pkgs.mkShell {
99
git
1010
mypy
1111
neovim
12-
cargo
13-
rust-analyzer
12+
rustup
13+
rust-analyzer # For integration tests.
1414
tmux
15+
vim # For manual tests.
1516
vim-vint
1617
(with python37Packages; [
1718
flake8

0 commit comments

Comments
 (0)