-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
58 lines (48 loc) · 1.42 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[package]
name = "gihex-hc-sr04"
version = "0.1.5"
edition = "2021"
authors = ["yogiastawan"]
repository = "https://github.com/yogiastawan/gx_HCSR04"
description = "Library to access HC-SR04 ultrasonic sensor"
keywords = ["embedded-system", "HC-SR04"]
categories = ["embedded", "no-std"]
license = "MIT"
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
opt-level = 'z' # turn on maximum optimizations.
lto = true # Link-time-optimizations for further size reduction
[dependencies]
embedded-hal = { version = "^0.2.7", features = ["unproven"] }
num-traits = { version = "^0.2.15", default-features = false }
[dev-dependencies]
cortex-m = { version = "^0.7.7", features = ["critical-section-single-core"] }
cortex-m-rt = "^0.7.3"
stm32f1xx-hal = { features = [
"stm32f103",
"rt",
"medium",
], version = "^0.10.0" }
# panic-halt = "^0.2.0"
cortex-m-semihosting = "0.5.0"
panic-semihosting = "0.6.0"
fugit = "0.3.7"
rtic = { version = "2.0.1", features = ["thumbv7-backend"] }
[features]
temperature = []
humidity = ["temperature"]
[package.metadata.docs.rs]
features = ["temperature", "humidity"]
[[example]]
name = "use_rtic"
required-features = []
[[example]]
name = "basic"
required-features = []
[[example]]
name = "with_temperature"
required-features = ["temperature"]
[[example]]
name = "with_humidity"
required-features = ["humidity"]