node-app-manifest 7.2.5

Canonical manifest schema and validation contract for Node apps
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[test]
fn compatibility_doc_carries_the_generated_feature_table() {
    let path = concat!(env!("CARGO_MANIFEST_DIR"), "/../../docs/development/stages/09-compatibility.md");
    let doc = std::fs::read_to_string(path).expect("09-compatibility.md");
    let start = doc.find("<!-- host-features:begin -->").expect("begin marker") + "<!-- host-features:begin -->".len();
    let end = doc.find("<!-- host-features:end -->").expect("end marker");
    assert_eq!(
        doc[start..end].trim(),
        node_app_manifest::render_host_feature_table().trim(),
        "regenerate with: cargo run -q -p node-app-build --bin node-app -- contract features --markdown"
    );
}