knok-build 0.4.0

Build-script graph tracing and code generation for knok
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[test]
fn graph_macro_diagnostics_are_stable() {
    let tests = trybuild::TestCases::new();
    tests.compile_fail("tests/ui/missing_backend.rs");
    tests.compile_fail("tests/ui/missing_return_type.rs");
    tests.compile_fail("tests/ui/old_axis_syntax.rs");
    tests.compile_fail("tests/ui/pattern_argument.rs");

    #[cfg(not(feature = "vulkan"))]
    tests.compile_fail("tests/ui/missing_vulkan_feature.rs");

    #[cfg(not(feature = "cuda"))]
    tests.compile_fail("tests/ui/missing_cuda_feature.rs");

    #[cfg(not(target_os = "macos"))]
    tests.compile_fail("tests/ui/missing_metal_platform.rs");
}