File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1
1
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 ;
2
18
/// Path to the directory with *source code* of
3
19
/// sysroot crates.
4
20
///
21
+ /// By default, this is `lib/rustlib/src/rust/library`
22
+ /// relative to the sysroot.
23
+ ///
5
24
/// It should point to the directory where std,
6
25
/// core, and friends can be found:
7
26
///
You can’t perform that action at this time.
0 commit comments