[build]
target = "xtensa-esp32s3-espidf"
rustflags = [
  "-C", "link-arg=-Tlinkall.x",
  "-C", "link-arg=-Tdefmt.x",
  # Required to obtain backtraces (e.g. when using the "esp-backtrace" crate.)
  # NOTE: May negatively impact performance of produced code
  "-C", "force-frame-pointers",
]

[target.xtensa-esp32s3-espidf]
runner = "espflash flash --monitor --log-format defmt " # --port /dev/cu.usbserial-0001

[unstable]
build-std = ["core", "alloc"]

[env]
MCU = "esp32s3"

DEFMT_LOG = "trace"
DEFMT_TIME_FORMAT = "{=u64:us}"
