move out most of text

see https://github.com/rust-embedded/book/pull/20
This commit is contained in:
Jorge Aparicio
2018-09-06 16:27:51 +02:00
parent 77a0685a17
commit 7faeedd95a
14 changed files with 126 additions and 657 deletions

View File

@@ -1,13 +1,17 @@
# TODO remove
cargo-features = ["edition"]
[package]
edition = "2018"
authors = ["{{authors}}"]
name = "{{project-name}}"
version = "0.1.0"
[dependencies]
cortex-m = "0.5.6"
cortex-m-rt = "0.5.3"
cortex-m = "0.5.7"
cortex-m-rt = "0.6.1"
cortex-m-semihosting = "0.3.1"
panic-semihosting = "0.4.0"
panic-halt = "0.1.3"
# Uncomment for the panic example.
# panic-itm = "0.3.0"
@@ -16,11 +20,17 @@ panic-semihosting = "0.4.0"
# alloc-cortex-m = "0.3.5"
# Uncomment for the device example.
# [dependencies.stm32f103xx]
# [dependencies.stm32f30x]
# features = ["rt"]
# version = "0.10.0"
# version = "0.7.1"
# this lets you use `cargo fix`!
[[bin]]
name = "{{project-name}}"
test = false
bench = false
[profile.release]
codegen-units = 1 # better optimizations
debug = true
debug = true # symbols are nice and they don't increase the size on Flash
lto = true # better optimizations