1. Eclipse插件
-
安装插件Eclipse Corrosion
-
https://projects.eclipse.org/projects/tools.corrosion/downloads
-
Rust项目名命名规范:identifier_snake_case
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
-
File ☞ New ☞ Other ☞ Cargo Project
// rustc main.rs
fn main() {
println!("Hello, world!");
}