1. Eclipse插件

Type Value

Rustup

D:\Install\Dev\Rust\CargoHome\bin\rustup.exe

Toolchain

Stable

Cargo

D:\Install\Dev\Rust\CargoHome\bin\cargo.exe

SysRoot

D:\Install\Dev\Rust\RustupHome\toolchains\stable-x86_64-pc-windows-gnu

Working Directory

D:\Install\Dev\eclipse

Language Server

D:\Install\Dev\Rust\CargoHome\bin\rust-analyzer.exe

LS Configuration

  • 请先确保已完成RustConfigurer.adoc的相关设置

  • Language Server:请配置rust-analyzer.exe,以替代过时rls.exe

  • D:\Install\Dev\Rust\CargoHome\bin\rust-analyzer.exe;

  • D:\Install\Dev\Rust\RustAnalyzerWinMsvc\rust-analyzer.exe

  • https://github.com/rust-lang/rust-analyzer/releases

EclipseRustConfig
  • File ☞ New ☞ Other ☞ Cargo Project

// rustc main.rs

fn main() {
    println!("Hello, world!");
}