Allow declaring cfg groups in rust-project.json, to help sharing common cfgs

This commit is contained in:
Chayim Refael Friedman 2024-08-12 02:47:31 +03:00
parent 0daeb5c0b0
commit 2607c09fdd
5 changed files with 619 additions and 4 deletions

View file

@ -233,6 +233,12 @@ fn rust_project_hello_world_project_model() {
);
}
#[test]
fn rust_project_cfg_groups() {
let (crate_graph, _proc_macros) = load_rust_project("cfg-groups.json");
check_crate_graph(crate_graph, expect_file!["../test_data/output/rust_project_cfg_groups.txt"]);
}
#[test]
fn rust_project_is_proc_macro_has_proc_macro_dep() {
let (crate_graph, _proc_macros) = load_rust_project("is-proc-macro-project.json");