This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 4
4
"rust-analyzer.imports.granularity.enforce" : true ,
5
5
"rust-analyzer.imports.granularity.group" : " module" ,
6
6
"rust-analyzer.imports.prefix" : " crate" ,
7
- "rust-analyzer.cargo.features" : [" unstable-features" ],
7
+ "rust-analyzer.cargo.features" : [" unstable-features" , " __check_build_system_using_ra " ],
8
8
"rust-analyzer.linkedProjects" : [
9
9
" ./Cargo.toml" ,
10
10
{
32
32
{
33
33
"sysroot_src" : " ./build_sysroot/sysroot_src/library" ,
34
34
"crates" : [
35
- {
36
- "root_module" : " ./y.rs" ,
37
- "edition" : " 2021" ,
38
- "deps" : [],
39
- "cfg" : [],
40
- },
41
35
{
42
36
"root_module" : " ./example/std_example.rs" ,
43
37
"edition" : " 2015" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,13 @@ name = "rustc_codegen_cranelift"
3
3
version = " 0.1.0"
4
4
edition = " 2021"
5
5
6
+ [[bin ]]
7
+ # This is used just to teach rust-analyzer how to check the build system. required-features is used
8
+ # to disable it for regular builds.
9
+ name = " y"
10
+ path = " ./y.rs"
11
+ required-features = [" __check_build_system_using_ra" ]
12
+
6
13
[lib ]
7
14
crate-type = [" dylib" ]
8
15
@@ -40,6 +47,7 @@ smallvec = "1.8.1"
40
47
unstable-features = [" jit" , " inline_asm" ]
41
48
jit = [" cranelift-jit" , " libloading" ]
42
49
inline_asm = []
50
+ __check_build_system_using_ra = []
43
51
44
52
[package .metadata .rust-analyzer ]
45
53
rustc_private = true
You can’t perform that action at this time.
0 commit comments