mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 13:51:13 +00:00

Note that the trick to use the same file for both was not ideal because it produces a warning and would compile it twice if it was by default. So just make both a lib.rs and a main.rs
9 lines
270 B
Rust
9 lines
270 B
Rust
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
// In order to be compatible with both desktop, wasm, and android, the example is both a binary and a library.
|
|
// Just forward to the library in main
|
|
|
|
fn main() {
|
|
printerdemo::main();
|
|
}
|