[package]
edition = "2021"
name = "m5dial-bsp"
version = "0.7.2"
homepage = "https://codeberg.org/antoinezen/m5dial-bsp"
repository = "https://codeberg.org/antoinezen/m5dial-bsp"
documentation = "https://antoinezen.codeberg.page/m5dial-bsp"
description = "Board support package for the M5 Dial."
license-file = "LICENSE"
readme = "README.md"

[workspace]
resolver = "3"
members = [".", "ft3267", "rtc8563", "examples"]


[dependencies]
defmt = "0.3.100"
embedded-hal = "1.0.0"
embedded-hal-bus = "0.3.0"
esp-hal = { version="1.0.0", features = ["defmt", "esp32s3", "unstable"] }
fugit = "0.3.9"
gc9a01-rs = "0.4.2"
rotary-encoder-hal = "0.6.0"
ft3267 = {path="./ft3267", version="0.1.0"}
rtc8563 = {path="./rtc8563", version="0.1.0"}

[profile.dev]
# Rust debug is too slow.
# For debug builds always builds with some optimization
opt-level = "s"

[profile.release]
codegen-units = 1        # LLVM can perform better optimizations using a single thread
debug = 1
debug-assertions = false
incremental = false
lto = 'fat'
opt-level = 's'
overflow-checks = false
