1
3
fn main() {
2
    // When we test our cfg machinery, in crates/arti/src/cfg.rs, we need to know
3
    // which cargo features are enabled - not just in the arti crate, but in the dependencies.
4
    // Indeed, we want to test with precisely the features we intend.
5
    // However, cargo feature unification can mean that features are enabled in dependencies,
6
    // even if *we* (arti) don't request them - especially if we run with --workspace.
7
    //
8
    // This `--cfg` is passed by maint/test-all-crates, when we test each crate individually.
9
    // That tells our test cases in cfg.rs that they can check that a feature is
10
    // actually unsupported.
11
    //
12
    // (We don't want this to be a normal cargo feature because then it would be enabled
13
    // with --workspace --all-features, defeating the point.)
14
    //
15
    // NOTE: This was previously used by memquota which was behind a feature flag. Now that we
16
    // always build arti with support for memquota, this is unused. But leaving it in place for now
17
    // anyways in case we want it again in the future.
18
3
    println!(r#"cargo:rustc-check-cfg=cfg(arti_features_precise)"#);
19
3
}