This repository has been archived by the owner on Sep 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
125 lines (93 loc) · 2.75 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[package]
name = "dwm1001"
version = "0.2.1"
authors = ["Hanno Braun <[email protected]>"]
edition = "2018"
description = "Board Support Crate for the Decawave DWM1001 module and development board"
documentation = "https://docs.rs/dw1000"
repository = "https://github.com/braun-robotics/rust-dw1000"
license = "0BSD"
readme = "README.md"
categories = ["embedded", "hardware-support", "no-std"]
keywords = ["decawave", "dw1000", "bsc", "radio", "uwb"]
[badges]
travis-ci = { repository = "braun-robotics/rust-dwm1001" }
[dependencies]
cortex-m-rt = { version = "0.6.3", optional = true }
cortex-m-semihosting = "0.3.0"
dw1000 = { git = "https://github.com/braun-embedded/rust-dw1000.git" }
embedded-hal = "0.2.1"
embedded-timeout-macros = "0.2.0"
[dependencies.cortex-m]
version = ">= 0.5.10, < 0.7"
features = [ "const-fn" ]
[dependencies.nrf52832-hal]
version = "0.8.0"
default-features = false
features = [ "xxAA-package" ]
[dev-dependencies]
heapless = "0.5.0"
nb = "0.1.1"
panic-semihosting = "0.5.0"
[features]
# expose features of DWM1001-Dev board
dev = []
# enable runtime support
rt = ["nrf52832-hal/rt", "cortex-m-rt"]
# enable debug output in some examples
semihosting = []
[[example]]
name = "blink"
required-features = ["dev", "rt"]
[[example]]
name = "uarte"
required-features = ["dev", "rt"]
[[example]]
name = "dw1000_delayed_tx"
required-features = ["dev", "rt"]
[[example]]
name = "dw1000_id"
required-features = ["dev", "rt"]
[[example]]
name = "dw1000_only_rx"
required-features = ["dev", "rt"]
[[example]]
name = "dw1000_only_tx"
required-features = ["dev", "rt"]
[[example]]
name = "dw1000_ranging_anchor"
required-features = ["dev", "rt"]
[[example]]
name = "dw1000_ranging_tag"
required-features = ["dev", "rt"]
[[example]]
name = "dw1000_reg_modify"
required-features = ["dev", "rt"]
[[example]]
name = "dw1000_reg_rw"
required-features = ["dev", "rt"]
[[example]]
name = "dw1000_reg_short"
required-features = ["dev", "rt"]
[[example]]
name = "dw1000_rx_tx"
required-features = ["dev", "rt"]
[[example]]
name = "dw1000_subreg"
required-features = ["dev", "rt"]
[[example]]
name = "dw1000_subreg_ext_addr"
required-features = ["dev", "rt"]
[[example]]
name = "lis2dh12"
required-features = ["dev", "rt"]
[[example]]
name = "uarte_heapless_string"
required-features = ["dev", "rt"]
[profile.release]
incremental = false
codegen-units = 1
lto = true
opt-level = 3
[package.metadata.docs.rs]
all-features = true