49 lines
1 KiB
TOML
49 lines
1 KiB
TOML
[package]
|
|
name = "rustysar"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["Your Name <your.email@example.com>"]
|
|
description = "Infineon Traveo Rust Application"
|
|
categories = ["embedded", "no-std"]
|
|
keywords = ["traveo", "cortex-m", "embedded"]
|
|
|
|
[dependencies]
|
|
cortex-m = "0.7"
|
|
cortex-m-rt = "0.7"
|
|
embedded-hal = "0.2"
|
|
panic-halt = "0.2"
|
|
nb = "1.0"
|
|
|
|
# Infineon Traveo specific dependencies
|
|
traveo-hal = { git = "https://github.com/Infineon/traveo-hal.git", optional = true }
|
|
|
|
[dependencies.cortex-m-semihosting]
|
|
version = "0.5"
|
|
optional = true
|
|
|
|
[features]
|
|
default = ["rt"]
|
|
rt = ["cortex-m-rt/device"]
|
|
semihosting = ["cortex-m-semihosting"]
|
|
|
|
# Infineon Traveo specific features
|
|
traveo-cyt2b7 = ["traveo-hal/cyt2b7"]
|
|
traveo-cyt2b9 = ["traveo-hal/cyt2b9"]
|
|
traveo-cyt4bf = ["traveo-hal/cyt4bf"]
|
|
traveo-cyt4dn = ["traveo-hal/cyt4dn"]
|
|
|
|
[target.thumbv6m-none-eabi.dependencies]
|
|
cortex-m = "0.7"
|
|
|
|
[target.thumbv7em-none-eabi.dependencies]
|
|
cortex-m = "0.7"
|
|
|
|
[profile.release]
|
|
codegen-units = 1
|
|
debug = true
|
|
lto = true
|
|
opt-level = "s"
|
|
|
|
[profile.dev]
|
|
debug = true
|
|
opt-level = "s"
|