1# Copyright © SixtyFPS GmbH <info@slint.dev>
2# SPDX-License-Identifier: MIT
3
4[package]
5name = "mcu-board-support"
6version = "1.5.1"
7authors = ["Slint Developers <info@slint.dev>"]
8edition = "2021"
9license = "MIT"
10publish = false
11description = "Internal helper that includes support for different MCUs, for use in Slint examples"
12repository = "https://github.com/slint-ui/slint"
13homepage = "https://slint.dev"
14links = "mcu_board_support" # just so we can pass metadata to the slint build crate
15
16[lib]
17path = "lib.rs"
18
19[features]
20pico-st7789 = ["slint/unsafe-single-threaded", "rp-pico", "embedded-hal", "cortex-m-rt", "embedded-alloc", "fugit", "cortex-m", "display-interface", "st7789", "defmt", "defmt-rtt", "shared-bus", "slint/libm", "embedded-dma", "embedded-graphics", "euclid/libm"]
21stm32h735g = ["slint/unsafe-single-threaded", "embedded-hal", "cortex-m/critical-section-single-core", "cortex-m-rt","embedded-alloc", "embedded-time", "cortex-m", "stm32h7xx-hal/stm32h735", "defmt", "defmt-rtt", "embedded-display-controller", "ft5336", "panic-probe", "slint/libm", "getrandom"]
22esp32-s2-kaluga-1 = ["slint/unsafe-single-threaded", "esp32s2-hal", "embedded-hal", "xtensa-lx-rt/esp32s2", "esp-alloc", "esp-println/esp32s2", "display-interface", "display-interface-spi", "st7789", "slint/libm"]
23esp32-s3-box = ["slint/unsafe-single-threaded", "esp32s3-hal", "embedded-hal", "xtensa-lx-rt/esp32s3", "esp-alloc", "esp-println/esp32s3", "esp-backtrace/esp32s3", "display-interface", "display-interface-spi", "mipidsi", "embedded-graphics-core", "slint/libm", "tt21100"]
24
25[dependencies]
26slint = { version = "=1.5.1", path = "../../api/rs/slint", default-features = false, features = ["compat-1-2", "renderer-software"] }
27i-slint-core-macros = { version = "=1.5.1", path = "../../internal/core-macros" }
28
29derive_more = "0.99.5"
30embedded-graphics = { version = "0.7.1", optional = true }
31once_cell = { version = "1.9", default-features = false, features = ["alloc"] }
32pin-weak = { version = "1", default-features = false }
33rgb = "0.8.27"
34cfg-if = "1"
35
36embedded-alloc = { version = "0.5", optional = true }
37cortex-m-rt = { version = "0.7", optional = true }
38cortex-m = { version = "0.7.2", optional = true }
39display-interface = { version = "0.4.1", optional = true }
40embedded-hal = { version = "0.2.5", optional = true }
41embedded-dma = { version = "0.2.0", optional = true }
42# Use a git branch that has DMA support
43rp-pico = { version = "0.8.0", optional = true }
44fugit = { version = "0.3.6", optional = true }
45shared-bus = { version = "0.3", optional = true }
46st7789 = { version = "0.7.0", optional = true }
47euclid = { version = "0.22", default-features = false, optional = true }
48
49stm32h7xx-hal = { version = "0.15.0", optional = true, features = ["log-rtt", "ltdc", "xspi"] }
50getrandom = { version = "0.2", optional = true, default-features = false, features = ["custom"] }
51embedded-time = { version = "0.12.0", optional = true }
52embedded-display-controller = { version = "0.1.0", optional = true }
53ft5336 = { version = "0.2", optional = true }
54
55esp32s2-hal = { version = "0.12", optional = true }
56esp32s3-hal = { version = "0.12", optional = true }
57xtensa-lx-rt = { version = "0.16", optional = true }
58display-interface-spi = { version = "0.4", optional = true }
59esp-alloc = { version = "0.3", optional = true }
60esp-println = { version = "0.7.0", optional = true }
61esp-backtrace = { version = "0.9.0", optional = true, features = ["panic-handler", "print-uart"] }
62tt21100 = { version = "0.1", optional = true }
63
64mipidsi = { version = "0.7.1", optional = true }
65embedded-graphics-core = { version = "0.4", optional = true }
66
67defmt-rtt = { version = "0.4.0", optional = true }
68defmt = { version = "0.3.0", optional = true }
69panic-probe = { version = "0.3.0", optional = true, features = ["print-defmt"] }
70
71[build-dependencies]
72cfg-if = "1.0.0"
73