前の記事
構築編
Rust Language Server導入エラー
1.Rust Language Serverの導入エラー
1.1.エラーの発生
Rust Language Serverの導入エラー
rustup component add rls rust-analysis rust-srcでエラー。エラー
[opc@test-server ~]$ rustup component add rls rust-analysis rust-src
error: toolchain 'stable-x86_64-unknown-linux-gnu' does not contain component 'rls' for target 'x86_64-unknown-linux-gnu'
help: did you mean 'rustc'?
実は、rlsは、すでに非推奨です!
2.後継のrust-analyzer
2.1.rust-analyzer導入
rust-analyzer導入
導入
[opc@test-server ~]$ ustup component add rust-analyzer rust-analysis rust-src
info: downloading 3 components
rust-analyzer downloading [######### ] 9.05 MiB (12.47 MiB/s, ETA: 0s) rust-analysis downloading [ ] 0 B (0 B/s, ETA: 0s) warn: using single-threaded unpacking due to low memory (ram budget: 298.9 MiB <rust-analyzer pending installation 9.05 MiB rust-analysis installed 15.91 KiB rust-src downloading [######### ] 5.59 MiB (2.29 MiB/s, ETA: 1s) rust-analyzer unpacking [## ] 9.05 MiB (3.47 MiB/s, ETA: 2s) rust-analysis installed 15.91 KiB rust-src pending installation 5.59 MiB rust-analyzer installed 9.05 MiB rust-analysis installed 15.91 KiB rust-src installed 5.59 MiB
最後に
記事の内容はCC BY-SA 4.0(著作者の情報とCCライセンス継承はお願いします。商用利用・改変・再配布は問題なし)です。