slint/examples/todo/rust/main.rs
Olivier Goffart 9eb52fb14a Demos: fix duplicate artifact name in Windows
```
warning: output filename collision.
The bin target `printerdemo` in package `printerdemo v1.5.0 (C:\dev\slint\examples\printerdemo\rust)` has the same output filename as the lib target `printerdemo` in package `printerdemo v1.5.0 (C:\dev\slint\examples\printerdemo\rust)`.
Colliding filename is: C:\dev\slint\target\debug\deps\printerdemo.pdb
The targets should have unique names.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
```
2024-03-06 11:16:07 +01:00

9 lines
267 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() {
todo_lib::main();
}