slint/examples/mcu-board-support/Cargo.toml
2025-04-30 13:27:50 +00:00

175 lines
5.2 KiB
TOML

# Copyright © SixtyFPS GmbH <info@slint.dev>
# SPDX-License-Identifier: MIT
[package]
name = "mcu-board-support"
version = "1.12.0"
authors = ["Slint Developers <info@slint.dev>"]
edition = "2021"
license = "MIT"
publish = false
description = "Internal helper that includes support for different MCUs, for use in Slint examples"
repository = "https://github.com/slint-ui/slint"
homepage = "https://slint.dev"
links = "mcu_board_support" # just so we can pass metadata to the slint build crate
[lib]
path = "lib.rs"
[features]
pico-st7789 = [
"slint/unsafe-single-threaded",
"rp-pico",
"embedded-hal",
"embedded-hal-nb",
"cortex-m-rt",
"embedded-alloc",
"fugit",
"cortex-m",
"dep:mipidsi",
"defmt",
"defmt-rtt",
"slint/libm",
"embedded-dma",
"embedded-graphics",
"euclid/libm",
]
pico2-st7789 = [
"slint/unsafe-single-threaded",
"rp235x-hal/binary-info",
"rp235x-hal/critical-section-impl",
"rp235x-hal/rt",
"rp235x-hal/defmt",
"embedded-hal",
"embedded-hal-nb",
"cortex-m-rt",
"embedded-alloc",
"fugit",
"cortex-m",
"dep:mipidsi",
"defmt",
"defmt-rtt",
"slint/libm",
"embedded-dma",
"embedded-graphics",
"euclid/libm",
]
stm32h735g = [
"slint/unsafe-single-threaded",
"cortex-m/critical-section-single-core",
"cortex-m-rt",
"embedded-alloc",
"embedded-time",
"stm32h7xx-hal/stm32h735",
"defmt",
"defmt-rtt",
"embedded-display-controller",
"ft5336",
"panic-probe",
"slint/libm",
"getrandom",
]
esp32-s3-box-3 = [
"slint/unsafe-single-threaded",
"esp-hal/esp32s3",
"esp-hal/unstable", # required for PSRAM support
"esp-hal/psram",
"embedded-hal",
"embedded-hal-bus",
"esp-alloc",
"esp-println/esp32s3",
"esp-backtrace/esp32s3",
"dep:mipidsi",
"embedded-graphics-core",
"slint/libm",
"gt911",
]
stm32u5g9j-dk2 = [
"embassy-stm32/stm32u5g9zj",
"embassy-stm32/time-driver-any",
"embassy-stm32/exti",
"embassy-stm32/memory-x",
"embassy-stm32/unstable-pac",
"embassy-stm32/chrono",
"embassy-stm32/time",
"embassy-stm32/defmt",
"embassy-executor/arch-cortex-m",
"embassy-executor/executor-interrupt",
"embassy-executor/task-arena-size-32768",
"embassy-executor/executor-thread",
"slint/libm",
"slint/unsafe-single-threaded",
"defmt",
"defmt-rtt",
"embedded-alloc",
"getrandom",
"cortex-m/critical-section-single-core",
"cortex-m-rt",
"panic-probe",
"embassy-time/tick-hz-32_768",
"embassy-time/defmt",
"embassy-time/defmt-timestamp-uptime",
"rand_core",
"cortex-m/inline-asm",
"cortex-m/critical-section-single-core",
"gt911/defmt",
"embassy-futures",
"i-slint-core/experimental",
]
[dependencies]
slint = { version = "=1.12.0", path = "../../api/rs/slint", default-features = false, features = ["compat-1-2", "renderer-software"] }
i-slint-core = { workspace = true }
i-slint-core-macros = { version = "=1.12.0", path = "../../internal/core-macros" }
derive_more = { workspace = true }
embedded-graphics = { version = "0.8", optional = true }
once_cell = { version = "1.9", default-features = false, features = ["alloc"] }
pin-weak = { version = "1", default-features = false }
rgb = "0.8.27"
cfg-if = "1"
log = "0.4.27"
embedded-alloc = { version = "0.6", optional = true }
cortex-m-rt = { version = "0.7", optional = true }
cortex-m = { version = "0.7.2", optional = true }
embedded-hal = { version = "1.0.0", optional = true }
embedded-hal-nb = { version = "1.0.0", optional = true }
embedded-hal-bus = { version = "0.2", optional = true }
embedded-dma = { version = "0.2.0", optional = true }
rp-pico = { version = "0.9.0", optional = true }
rp235x-hal = { version = "0.2.0", default-features = false, optional = true }
fugit = { version = "0.3.6", optional = true }
euclid = { version = "0.22", default-features = false, optional = true }
stm32h7xx-hal = { version = "0.16.0", optional = true, features = ["log-rtt", "ltdc", "xspi"] }
getrandom = { version = "0.2", optional = true, default-features = false, features = ["custom"] }
embedded-time = { version = "0.12.0", optional = true }
embedded-display-controller = { version = "0.2.0", optional = true }
ft5336 = { version = "0.2", optional = true }
# Commented out until ported to newer version that matches embassy-time needed by stm32u5
esp-hal = { version = "1.0.0-beta.0", optional = true }
esp-alloc = { version = "0.7", optional = true }
esp-println = { version = "0.13.1", features = ["log"], optional = true }
esp-backtrace = { version = "0.15.1", optional = true, features = ["panic-handler", "println"] }
mipidsi = { version = "0.9.0", optional = true }
embedded-graphics-core = { version = "0.4", optional = true }
defmt-rtt = { version = "0.4.0", optional = true }
defmt = { version = "1.0.0", optional = true }
panic-probe = { version = "0.3.0", optional = true, features = ["print-defmt"] }
embassy-stm32 = { version = "0.2.0", optional = true }
embassy-executor = { version = "0.7.0", optional = true, default-features = false }
embassy-time = { version = "0.4.0", optional = true }
embassy-futures = { version = "0.1.1", optional = true }
gt911 = { version = "0.3.0", optional = true }
rand_core = { version = "0.6.3", optional = true }
[build-dependencies]
cfg-if = "1.0.0"