Skip to content

Instantly share code, notes, and snippets.

@pferreir
Last active April 10, 2019 17:40
Show Gist options
  • Select an option

  • Save pferreir/8bb61f27d9f88678f36c769417bc34e4 to your computer and use it in GitHub Desktop.

Select an option

Save pferreir/8bb61f27d9f88678f36c769417bc34e4 to your computer and use it in GitHub Desktop.
[package]
authors = ["John Doe <doe@example.com>"]
edition = "2018"
readme = "README.md"
name = "embed"
version = "0.1.0"
[dependencies]
cortex-m = "0.5.8"
cortex-m-rt = "0.6.7"
cortex-m-semihosting = "0.3.2"
embedded-hal = "0.2.2"
panic-semihosting = "0.5.1"
panic-halt = "0.2.0"
# Uncomment for the allocator example.
# alloc-cortex-m = "0.3.5"
# Uncomment for the device example.
[dependencies.stm32f4xx-hal]
features = ["stm32f407"]
path = "../stm32f4xx-hal"
# this lets you use `cargo fix`!
[[bin]]
name = "embed"
test = false
bench = false
[profile.release]
codegen-units = 1 # better optimizations
debug = true # symbols are nice and they don't increase the size on Flash
lto = true # better optimizations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment