slint/examples/printerdemo/rust/main.rs
Olivier Goffart b236d2d06e Examples: make both a lib and a bin by default
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
2024-02-22 09:02:06 +01:00

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();
}