forked from lupyuen/stm32-blue-pill-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
34 lines (28 loc) · 1.02 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This file declares the dependencies for the Rust program.
[package]
name = "stm32-blue-pill-rust"
version = "0.3.2"
authors = ["Lee Lup Yuen <luppy@appkaki.com>"]
description = "A sample Rust application for STM32 Blue Pill microcontrollers"
keywords = ["arm", "cortex-m", "stm32", "bluepill"]
categories = ["embedded", "no-std"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/lupyuen/stm32-blue-pill-rust"
# To minimize the executable size, we should always compile with --release flag.
[profile.release]
# To optimize the usage of many crates, we should link with Link Time Optimization (LTO).
lto = true
codegen-units = 1
# Enable debugging in release mode.
debug = true
[dependencies]
stm32f103xx = { git = "https://github.com/japaric/stm32f103xx" }
stm32f103xx-hal = { git = "https://github.com/japaric/stm32f103xx-hal" }
[dependencies.cortex-m]
version = "0.5.0"
[dependencies.cortex-m-rt]
version = "0.5.0"
[dependencies.cortex-m-semihosting]
version = "0.3.0"
[dependencies.panic-semihosting]
version = "0.3.0"