1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
---|---|
2 | // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial |
3 | |
4 | fn main() { |
5 | // Make the compiler handle ComponentContainer: |
6 | std::env::set_var(key:"SLINT_ENABLE_EXPERIMENTAL_FEATURES", value: "1"); |
7 | #[cfg(feature = "preview-engine")] |
8 | slint_build::compile(path:"ui/main.slint").unwrap(); |
9 | } |
10 |