cabinpkg 0.17.0

A package manager and build system for C/C++
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[test]
fn quickstart_does_not_advertise_generic_offline_test_after_vendor() {
    let docs = include_str!("../../../../docs/vendoring-offline.md");
    let quickstart = docs
        .split("## What `cabin vendor` produces")
        .next()
        .expect("vendoring docs should have a quickstart section");
    assert!(
        !quickstart.contains("cabin test   --offline --index-path ./vendor"),
        "the top-level vendor workflow must not imply that dev-dependency test closures are vendored: {quickstart}"
    );

    let glue = include_str!("../../src/cli/vendor.rs");
    assert!(
        !glue.contains("cabin test   --offline --index-path ./vendor"),
        "vendor_glue module docs must not advertise a generic offline test workflow"
    );
}