1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
0: CrateBuilder {
basic: CrateData {
root_file_id: FileId(
1,
),
edition: Edition2018,
dependencies: [],
origin: Local {
repo: None,
name: Some(
"hello_world",
),
},
crate_attrs: [],
is_proc_macro: false,
proc_macro_cwd: AbsPathBuf(
"$ROOT$",
),
},
extra: ExtraCrateData {
version: None,
display_name: Some(
CrateDisplayName {
crate_name: CrateName(
"hello_world",
),
canonical_name: "hello_world",
},
),
potential_cfg_options: None,
},
cfg_options: CfgOptions(
[
"group1_cfg=some_config",
"group1_other_cfg=other_config",
"group2_cfg=yet_another_config",
"rust_analyzer",
"test",
"true",
],
),
env: Env {
entries: {},
},
ws_data: CrateWorkspaceData {
target: Err(
"test has no target data",
),
toolchain: None,
},
},
1: CrateBuilder {
basic: CrateData {
root_file_id: FileId(
1,
),
edition: Edition2018,
dependencies: [],
origin: Local {
repo: None,
name: Some(
"other_crate",
),
},
crate_attrs: [],
is_proc_macro: false,
proc_macro_cwd: AbsPathBuf(
"$ROOT$",
),
},
extra: ExtraCrateData {
version: None,
display_name: Some(
CrateDisplayName {
crate_name: CrateName(
"other_crate",
),
canonical_name: "other_crate",
},
),
potential_cfg_options: None,
},
cfg_options: CfgOptions(
[
"group2_cfg=fourth_config",
"group2_cfg=yet_another_config",
"rust_analyzer",
"test",
"true",
"unrelated_cfg",
],
),
env: Env {
entries: {},
},
ws_data: CrateWorkspaceData {
target: Err(
"test has no target data",
),
toolchain: None,
},
},
}