summaryrefslogtreecommitdiffstats
path: root/src/tools/rust-analyzer/crates/project-model/test_data/hello-world-metadata.json
blob: b6142eeaf2f609fe82f2534ba0ba5259d79e2efd (plain)
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
{
    "packages": [
        {
            "name": "hello-world",
            "version": "0.1.0",
            "id": "hello-world 0.1.0 (path+file://$ROOT$hello-world)",
            "license": null,
            "license_file": null,
            "description": null,
            "source": null,
            "dependencies": [
                {
                    "name": "libc",
                    "source": "registry+https://github.com/rust-lang/crates.io-index",
                    "req": "^0.2",
                    "kind": null,
                    "rename": null,
                    "optional": false,
                    "uses_default_features": true,
                    "features": [],
                    "target": null,
                    "registry": null
                }
            ],
            "targets": [
                {
                    "kind": [
                        "lib"
                    ],
                    "crate_types": [
                        "lib"
                    ],
                    "name": "hello-world",
                    "src_path": "$ROOT$hello-world/src/lib.rs",
                    "edition": "2018",
                    "doc": true,
                    "doctest": true,
                    "test": true
                },
                {
                    "kind": [
                        "bin"
                    ],
                    "crate_types": [
                        "bin"
                    ],
                    "name": "hello-world",
                    "src_path": "$ROOT$hello-world/src/main.rs",
                    "edition": "2018",
                    "doc": true,
                    "doctest": false,
                    "test": true
                },
                {
                    "kind": [
                        "example"
                    ],
                    "crate_types": [
                        "bin"
                    ],
                    "name": "an-example",
                    "src_path": "$ROOT$hello-world/examples/an-example.rs",
                    "edition": "2018",
                    "doc": false,
                    "doctest": false,
                    "test": false
                },
                {
                    "kind": [
                        "test"
                    ],
                    "crate_types": [
                        "bin"
                    ],
                    "name": "it",
                    "src_path": "$ROOT$hello-world/tests/it.rs",
                    "edition": "2018",
                    "doc": false,
                    "doctest": false,
                    "test": true
                }
            ],
            "features": {},
            "manifest_path": "$ROOT$hello-world/Cargo.toml",
            "metadata": null,
            "publish": null,
            "authors": [],
            "categories": [],
            "keywords": [],
            "readme": null,
            "repository": null,
            "homepage": null,
            "documentation": null,
            "edition": "2018",
            "links": null
        },
        {
            "name": "libc",
            "version": "0.2.98",
            "id": "libc 0.2.98 (registry+https://github.com/rust-lang/crates.io-index)",
            "license": "MIT OR Apache-2.0",
            "license_file": null,
            "description": "Raw FFI bindings to platform libraries like libc.\n",
            "source": "registry+https://github.com/rust-lang/crates.io-index",
            "dependencies": [
                {
                    "name": "rustc-std-workspace-core",
                    "source": "registry+https://github.com/rust-lang/crates.io-index",
                    "req": "^1.0.0",
                    "kind": null,
                    "rename": null,
                    "optional": true,
                    "uses_default_features": true,
                    "features": [],
                    "target": null,
                    "registry": null
                }
            ],
            "targets": [
                {
                    "kind": [
                        "lib"
                    ],
                    "crate_types": [
                        "lib"
                    ],
                    "name": "libc",
                    "src_path": "$ROOT$.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.98/src/lib.rs",
                    "edition": "2015",
                    "doc": true,
                    "doctest": true,
                    "test": true
                },
                {
                    "kind": [
                        "test"
                    ],
                    "crate_types": [
                        "bin"
                    ],
                    "name": "const_fn",
                    "src_path": "$ROOT$.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.98/tests/const_fn.rs",
                    "edition": "2015",
                    "doc": false,
                    "doctest": false,
                    "test": true
                },
                {
                    "kind": [
                        "custom-build"
                    ],
                    "crate_types": [
                        "bin"
                    ],
                    "name": "build-script-build",
                    "src_path": "$ROOT$.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.98/build.rs",
                    "edition": "2015",
                    "doc": false,
                    "doctest": false,
                    "test": false
                }
            ],
            "features": {
                "align": [],
                "const-extern-fn": [],
                "default": [
                    "std"
                ],
                "extra_traits": [],
                "rustc-dep-of-std": [
                    "align",
                    "rustc-std-workspace-core"
                ],
                "std": [],
                "use_std": [
                    "std"
                ]
            },
            "manifest_path": "$ROOT$.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.98/Cargo.toml",
            "metadata": null,
            "publish": null,
            "authors": [
                "The Rust Project Developers"
            ],
            "categories": [
                "external-ffi-bindings",
                "no-std",
                "os"
            ],
            "keywords": [
                "libc",
                "ffi",
                "bindings",
                "operating",
                "system"
            ],
            "readme": "README.md",
            "repository": "https://github.com/rust-lang/libc",
            "homepage": "https://github.com/rust-lang/libc",
            "documentation": "https://docs.rs/libc/",
            "edition": "2015",
            "links": null
        }
    ],
    "workspace_members": [
        "hello-world 0.1.0 (path+file://$ROOT$hello-world)"
    ],
    "resolve": {
        "nodes": [
            {
                "id": "hello-world 0.1.0 (path+file://$ROOT$hello-world)",
                "dependencies": [
                    "libc 0.2.98 (registry+https://github.com/rust-lang/crates.io-index)"
                ],
                "deps": [
                    {
                        "name": "libc",
                        "pkg": "libc 0.2.98 (registry+https://github.com/rust-lang/crates.io-index)",
                        "dep_kinds": [
                            {
                                "kind": null,
                                "target": null
                            }
                        ]
                    }
                ],
                "features": []
            },
            {
                "id": "libc 0.2.98 (registry+https://github.com/rust-lang/crates.io-index)",
                "dependencies": [],
                "deps": [],
                "features": [
                    "default",
                    "std"
                ]
            }
        ],
        "root": "hello-world 0.1.0 (path+file://$ROOT$hello-world)"
    },
    "target_directory": "$ROOT$hello-world/target",
    "version": 1,
    "workspace_root": "$ROOT$hello-world",
    "metadata": null
}