Skip to content

Commit

Permalink
Add rust-toolchain file and replace cargo with rustup
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
autozimu committed Jul 19, 2020
1 parent dcdd3e4 commit 9de13bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.45.0
5 changes: 3 additions & 2 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ pkgs.mkShell {
git
mypy
neovim
cargo
rust-analyzer
rustup
rust-analyzer # For integration tests.
tmux
vim # For manual tests.
vim-vint
(with python37Packages; [
flake8
Expand Down

0 comments on commit 9de13bc

Please sign in to comment.