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