1 Star 17 Fork 3

Lee Lup Yuen 李立源 / stm32-blue-pill-rust

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Cargo.test 2.98 KB
一键复制 编辑 原始数据 按行查看 历史
# This file declares the dependencies for the Rust program.
[package]
name = "stm32-blue-pill-rust"
version = "0.3.3"
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 for the main program: src/main.rs
[dependencies.cortex-m]
version = "0.5.0"
#### TODO: Test version 0.5.1. Previously we used 0.5.0.
[dependencies.cortex-m-rt]
version = "0.5.1"
[dependencies.cortex-m-semihosting]
version = "0.3.0"
[dependencies.panic-semihosting]
version = "0.3.0"
[dependencies.stm32f103xx]
git = "https://github.com/japaric/stm32f103xx"
version = "0.10.0"
[dependencies.stm32f103xx-hal]
git = "https://github.com/japaric/stm32f103xx-hal"
version = "0.1.0"
# Dependencies for the RTFM examples: examples/*
[dev-dependencies]
# For RTFM: Take the latest revision of the "tq" branch, which has fixed the macro issue.
# TODO: Switch to main branch.
cortex-m-rtfm = { git = "https://github.com/japaric/cortex-m-rtfm", rev = "7b598c0749aa5390cfefc8e138c05fafa7599dc6" }
panic-semihosting = "0.3.0"
typenum = "1.10.0"
# cortex-m-rtfm-macros = { path = "macros", version = "0.3.1" }
# panic-abort = "0.1.1"
# panic-itm = "0.1.1"
# heapless = "0.3.6"
# heapless = { git = "https://github.com/japaric/heapless", branch = "object-pool" }
# Here are all the example programs and the features they need.
# Blink the LED.
[[example]]
name = "blinky"
[[example]]
name = "schedule-after"
required-features = ["timer-queue"]
[[example]]
name = "schedule-now"
[[example]]
name = "minimal"
[[example]]
name = "idle"
[[example]]
name = "event-task"
[[example]]
name = "schedule-now-from-event-task"
required-features = ["timer-queue"]
[[example]]
name = "schedule-after-from-event-task"
required-features = ["timer-queue"]
[[example]]
name = "periodic-payload"
required-features = ["timer-queue"]
[[example]]
name = "periodic-preemption-payload"
required-features = ["timer-queue"]
[[example]]
name = "periodic-preemption"
required-features = ["timer-queue"]
[[example]]
name = "periodic"
required-features = ["timer-queue"]
[[example]]
name = "user-struct"
required-features = ["timer-queue"]
# Old examples to be migrated.
# Single task example
[[example]]
name = "old-one-task"
[[example]]
name = "old-custom-type"
[[example]]
name = "old-full-syntax"
[[example]]
name = "old-generics"
[[example]]
name = "old-late-resources"
[[example]]
name = "old-nested"
[[example]]
name = "old-preemption"
[[example]]
name = "old-safe-static-mut-ref"
[[example]]
name = "old-two-tasks"
[[example]]
name = "old-zero-tasks"
Rust
1
https://gitee.com/lupyuen/stm32-blue-pill-rust.git
git@gitee.com:lupyuen/stm32-blue-pill-rust.git
lupyuen
stm32-blue-pill-rust
stm32-blue-pill-rust
master

搜索帮助