# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "rlvgl-platform"
version = "0.2.3"
authors = ["Ira Abbott <ira@softobotos.com>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Platform backends, blitters, and hardware integration for rlvgl."
homepage = "https://github.com/softoboros/rlvgl"
documentation = "https://docs.rs/rlvgl-platform"
readme = "README.md"
keywords = [
    "embedded",
    "graphics",
    "ui",
    "lvgl",
    "no_std",
]
categories = [
    "embedded",
    "gui",
    "no-std",
    "graphics",
]
license = "MIT"
repository = "https://github.com/softoboros/rlvgl"

[features]
apng = [
    "rlvgl-core/apng",
    "dep:image",
]
audio = [
    "stm32h7",
    "embedded-hal",
]
canvas = [
    "rlvgl-core/canvas",
    "embedded-graphics",
]
default = []
dma2d = ["stm32h7"]
experimental_dsi_host = []
fatfs = ["rlvgl-core/fatfs"]
fatfs_nostd = ["dep:fatfs"]
fontdue = ["rlvgl-core/fontdue"]
freertos = []
gif = ["rlvgl-core/gif"]
jpeg = ["rlvgl-core/jpeg"]
linux_fbdev = ["dep:libc"]
lottie = ["rlvgl-core/lottie"]
mock_blitter = []
nes = ["rlvgl-core/nes"]
pinyin = ["rlvgl-core/pinyin"]
png = ["rlvgl-core/png"]
qrcode = ["rlvgl-core/qrcode"]
regression = []
sd_storage = ["dep:embedded-sdmmc"]
sdram_ramtest = []
semihosting = ["dep:cortex-m-semihosting"]
simulator = [
    "wgpu",
    "winit",
    "embedded-graphics",
    "eframe",
    "pollster",
    "dep:image",
    "tracing-subscriber",
    "dep:libloading",
    "fontdue",
]
splash = ["dep:rlvgl-decomp"]
ssd1306 = [
    "dep:ssd1306",
    "embedded-hal",
    "display-interface",
    "embedded-graphics",
]
st7789 = [
    "embedded-hal",
    "display-interface",
    "display-interface-spi",
]
stm32h747i_disco = [
    "stm32h7",
    "embedded-hal",
    "stm32h7xx-hal",
    "cortex-m",
    "rlvgl-core/fs",
]
uefi = [
    "dep:uefi",
    "dep:rlvgl-playit",
]

[lib]
name = "rlvgl_platform"
path = "src/lib.rs"

[[example]]
name = "leak"
path = "examples/leak.rs"

[[test]]
name = "addr"
path = "tests/addr.rs"

[[test]]
name = "blend_row_override"
path = "tests/blend_row_override.rs"

[[test]]
name = "blitter_command_sink"
path = "tests/blitter_command_sink.rs"

[[test]]
name = "discipline"
path = "tests/discipline.rs"

[[test]]
name = "discipline_compile"
path = "tests/discipline_compile.rs"

[[test]]
name = "input_device"
path = "tests/input_device.rs"

[[test]]
name = "isr_channel"
path = "tests/isr_channel.rs"

[[test]]
name = "leak_detection"
path = "tests/leak_detection.rs"

[[test]]
name = "simulator_window"
path = "tests/simulator_window.rs"

[[test]]
name = "size_regression"
path = "tests/size_regression.rs"

[dependencies.bitflags]
version = "2"
default-features = false

[dependencies.display-interface]
version = "0.5"
optional = true

[dependencies.display-interface-spi]
version = "0.5"
optional = true

[dependencies.eframe]
version = "0.27"
features = ["glow"]
optional = true
default-features = false

[dependencies.embedded-graphics]
version = "0.8"
optional = true

[dependencies.embedded-hal]
version = "1.0"
optional = true

[dependencies.embedded-sdmmc]
version = "0.9"
optional = true
default-features = false

[dependencies.heapless]
version = "0.8"
default-features = false

[dependencies.image]
version = "0.25"
features = ["png"]
optional = true
default-features = false

[dependencies.libc]
version = "0.2"
optional = true

[dependencies.libloading]
version = "0.8"
optional = true

[dependencies.pollster]
version = "0.3"
optional = true

[dependencies.portable-atomic]
version = "1"
default-features = false

[dependencies.rlvgl-core]
version = "0.2.2"
default-features = false

[dependencies.rlvgl-decomp]
version = "0.2.2"
optional = true

[dependencies.rlvgl-playit]
version = "0.2.2"
optional = true
default-features = false

[dependencies.ssd1306]
version = "0.9"
features = ["graphics"]
optional = true
default-features = false

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
]
optional = true

[dependencies.uefi]
version = "0.36.1"
optional = true

[dependencies.wgpu]
version = "0.19"
features = ["wgsl"]
optional = true

[dependencies.winit]
version = "0.30.12"
optional = true

[dev-dependencies.base64]
version = "0.21"

[dev-dependencies.fatfs]
version = "0.3"

[dev-dependencies.fscommon]
version = "0.1"

[dev-dependencies.trybuild]
version = "1.0"

[target.'cfg(any(target_arch = "arm", target_os = "none"))'.dependencies.cortex-m]
version = "0.7"
features = [
    "critical-section-single-core",
    "cm7",
]
optional = true

[target.'cfg(any(target_arch = "arm", target_os = "none"))'.dependencies.cortex-m-semihosting]
version = "0.5"
optional = true

[target.'cfg(any(target_arch = "arm", target_os = "none"))'.dependencies.fatfs]
version = "0.3"
features = [
    "alloc",
    "core_io",
]
optional = true
default-features = false

[target.'cfg(any(target_arch = "arm", target_os = "none"))'.dependencies.stm32h7]
version = "0.15.1"
features = [
    "stm32h747cm7",
    "rt",
]
optional = true

[target.'cfg(any(target_arch = "arm", target_os = "none"))'.dependencies.stm32h7xx-hal]
version = "0.16"
features = [
    "stm32h747cm7",
    "sdmmc",
    "xspi",
]
optional = true
