| 1 | # Copyright © SixtyFPS GmbH <info@slint.dev> |
| 2 | # SPDX-License-Identifier: MIT |
| 3 | |
| 4 | [package] |
| 5 | name = "slide_puzzle" |
| 6 | version = "1.11.0" |
| 7 | authors = ["Slint Developers <info@slint.dev>" ] |
| 8 | edition = "2021" |
| 9 | publish = false |
| 10 | license = "MIT" |
| 11 | |
| 12 | [[bin]] |
| 13 | path = "main.rs" |
| 14 | name = "slide_puzzle" |
| 15 | |
| 16 | [dependencies] |
| 17 | rand = "0.8" |
| 18 | slint = { path = "../../api/rs/slint" } |
| 19 | |
| 20 | [build-dependencies] |
| 21 | slint-build = { path = "../../api/rs/build" } |
| 22 | |
| 23 | # Remove the `#wasm#` to uncomment the wasm build. |
| 24 | # This is commented out by default because we don't want to build it as a library by default |
| 25 | # The CI has a script that does sed "s/#wasm# //" to generate the wasm build. |
| 26 | |
| 27 | #wasm# [lib] |
| 28 | #wasm# path = "main.rs" |
| 29 | #wasm# crate-type = ["cdylib"] |
| 30 | |
| 31 | #wasm# [target.'cfg(target_arch = "wasm32")'.dependencies] |
| 32 | #wasm# wasm-bindgen = { version = "0.2" } |
| 33 | #wasm# web-sys = { version = "0.3", features=["console", "Element", "HtmlCollection"] } |
| 34 | #wasm# console_error_panic_hook = "0.1.5" |
| 35 | #wasm# getrandom = { version = "0.2.2", features = ["js"] } |
| 36 | |