i-slint-backend-testing 1.9.2

OpenGL rendering backend for Slint
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0

fn main() {
    #[cfg(feature = "system-testing")]
    {
        let out_dir = std::path::PathBuf::from(std::env::var("OUT_DIR").unwrap());
        let proto_file = std::path::PathBuf::from(::std::env::var("CARGO_MANIFEST_DIR").unwrap())
            .join("slint_systest.proto");
        let config_builder = pb_rs::ConfigBuilder::new(&[proto_file], None, Some(&out_dir), &[])
            .unwrap()
            .headers(false)
            .dont_use_cow(true);
        pb_rs::types::FileDescriptor::run(&config_builder.build()).unwrap();
    }
}