Skip to content

Commit 113f054

Browse files
committed
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.
2 parents a02a219 + 931f563 commit 113f054

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

editors/code/src/rust_project.ts

+19
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
11
export interface JsonProject {
2+
/// Path to the sysroot directory.
3+
///
4+
/// The sysroot is where rustc looks for the
5+
/// crates that are built-in to rust, such as
6+
/// std.
7+
///
8+
/// https://doc.rust-lang.org/rustc/command-line-arguments.html#--sysroot-override-the-system-root
9+
///
10+
/// To see the current value of sysroot, you
11+
/// can query rustc:
12+
///
13+
/// ```
14+
/// $ rustc --print sysroot
15+
/// /Users/yourname/.rustup/toolchains/stable-x86_64-apple-darwin
16+
/// ```
17+
sysroot?: string;
218
/// Path to the directory with *source code* of
319
/// sysroot crates.
420
///
21+
/// By default, this is `lib/rustlib/src/rust/library`
22+
/// relative to the sysroot.
23+
///
524
/// It should point to the directory where std,
625
/// core, and friends can be found:
726
///

0 commit comments

Comments
 (0)