diff options
| author | bors <bors@rust-lang.org> | 2024-02-14 06:24:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-02-14 06:24:56 +0000 |
| commit | 113f0542747c80e56dbe9e3aeb7eaff645960d7a (patch) | |
| tree | 484fe69207121321008481984267b5062027910d | |
| parent | a02a219773629686bd8ff123ca1aa995fa50d976 (diff) | |
| parent | 931f563a8920ce329dee285f96ed9ea2335beb74 (diff) | |
| download | rust-113f0542747c80e56dbe9e3aeb7eaff645960d7a.tar.gz rust-113f0542747c80e56dbe9e3aeb7eaff645960d7a.zip | |
Auto merge of #16558 - Wilfred:json_project_ts, r=lnicola
Update JsonProject to include optional fields These were documented in #15014 in the manual, but this definition wasn't updated to match.
| -rw-r--r-- | editors/code/src/rust_project.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/editors/code/src/rust_project.ts b/editors/code/src/rust_project.ts index bf65ad43ba5..c983874fc00 100644 --- a/editors/code/src/rust_project.ts +++ b/editors/code/src/rust_project.ts @@ -1,7 +1,26 @@ export interface JsonProject { + /// Path to the sysroot directory. + /// + /// The sysroot is where rustc looks for the + /// crates that are built-in to rust, such as + /// std. + /// + /// https://doc.rust-lang.org/rustc/command-line-arguments.html#--sysroot-override-the-system-root + /// + /// To see the current value of sysroot, you + /// can query rustc: + /// + /// ``` + /// $ rustc --print sysroot + /// /Users/yourname/.rustup/toolchains/stable-x86_64-apple-darwin + /// ``` + sysroot?: string; /// Path to the directory with *source code* of /// sysroot crates. /// + /// By default, this is `lib/rustlib/src/rust/library` + /// relative to the sysroot. + /// /// It should point to the directory where std, /// core, and friends can be found: /// |
