about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/project-model/test_data/cfg-groups.json
blob: 29f83afd9d4e55418f4693e87e08d1a84777d3c8 (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
{
    "sysroot_src": null,
    "cfg_groups": {
        "group1": ["group1_cfg=\"some_config\"", "group1_other_cfg=\"other_config\""],
        "group2": ["group2_cfg=\"yet_another_config\""]
    },
    "crates": [
        {
            "display_name": "hello_world",
            "root_module": "$ROOT$src/lib.rs",
            "edition": "2018",
            "cfg_groups": ["group1", "group2"],
            "deps": [],
            "is_workspace_member": true
        },
        {
            "display_name": "other_crate",
            "root_module": "$ROOT$src/lib.rs",
            "edition": "2018",
            "cfg_groups": ["group2"],
            "cfg": ["group2_cfg=\"fourth_config\"", "unrelated_cfg"],
            "deps": [],
            "is_workspace_member": true
        }
    ]
}