-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathCargo.toml
230 lines (181 loc) · 5.09 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
[workspace]
members = [".", "benches-harness"]
[package]
name = "nmea"
version = "0.7.0"
authors = [
"Felix Obenhuber <[email protected]>",
"Evgeniy A. Dushistov <[email protected]>",
"Henrik Böving <[email protected]>",
"Lachezar Lechev <[email protected]>",
"AeroRust <[email protected]>",
]
categories = ["parser-implementations", "no-std", "embedded"]
keywords = ["NMEA", "gps", "glonass", "coordinate", "position"]
description = "Simple NMEA 0183 parser"
license = "Apache-2.0"
documentation = "https://docs.rs/nmea"
repository = "https://github.com/AeroRust/nmea"
readme = "README.md"
edition = "2021"
# Update README.md and ci.yml when updating the MSRV!
# When bumping MSRV to 1.81, make sure to use core::error::Error.
rust-version = "1.70.0"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
arrayvec = { version = "0.7", default-features = false }
chrono = { version = "0.4", default-features = false }
heapless = "0.8"
nom = { version = "7.1", default-features = false }
# we include num-traits only when `std` is not enabled
# because of `fract()` and `trunc()` methods
num-traits = { version = "0.2", default-features = false, features = ["libm"] }
cfg-if = "1"
serde = { version = "1.0", default-features = false, optional = true }
serde_with = { version = "~3.11", default-features = false, optional = true }
defmt = { version = "0.3", optional = true }
document-features = { version = "0.2", optional = true }
[dev-dependencies]
approx = "0.5"
doc-comment = "0.3"
pretty_assertions = "1"
quickcheck = { version = "1", default-features = false }
serde_json = "1.0"
[features]
## Default features: `std` & `all-sentences`
default = ["std", "all-sentences"]
## Enable the `std` (standard library) usage
std = ["nom/std", "chrono/std", "arrayvec/std", "serde?/std", "serde_with?/std"]
## Enable derives for (De)Serialization with `serde`
serde = [
"serde/derive",
"serde_with/macros",
"serde_with/chrono_0_4",
"heapless/serde",
"chrono/serde",
"arrayvec/serde"
]
## Enable derives of `[email protected]` formatting for embedded platforms
defmt-03 = ["dep:defmt", "heapless/defmt-03"]
## Enable the documentation of features (disabled by default to remove unnecessary to the functionality dependencies)
features-docs = ["dep:document-features"]
#! ## Sentences features
## Enable all sentences
all-sentences = ["GNSS", "waypoint", "maritime", "water", "vendor-specific", "other"]
#! ### Categorised features
## GNSS specific sentences related to the position or speed relative to the ground
GNSS = ["APA", "ALM", "GBS", "GGA", "GLL", "GNS", "GSA", "GST", "GSV", "RMC", "VTG"]
## Waypoint
waypoint = ["AAM", "BOD", "BWC", "BWW", "WNC", "ZFO", "ZTG"]
## Maritime
maritime = ["waypoint", "water", "radar"]
## Radar
radar = ["TTM"]
## Water
water = ["DBK", "DBS", "DPT", "MTW", "VHW"]
## Vendor-specific messages
vendor-specific = ["RMZ"]
## Other
other = ["HDT", "MDA", "MWV", "TXT", "ZDA"]
#! ### Supported sentences (alphabetically ordered)
## Waypoint Arrival Alarm
## (feature: `waypoint`)
AAM = []
## GPS Almanac Data
## (feature: `GNSS`)
ALM = []
## Autopilot Sentence "A"
## (feature: `GNSS`)
APA = []
## Bearing - Waypoint to Waypoint
## (feature: `waypoint`)
BOD = []
## Bearing & Distance to Waypoint - Great Circle
## (feature: `waypoint`)
BWC = []
## Bearing - Waypoint to Waypoint
## (feature: `waypoint`)
BWW = []
## Depth Below Keel
## (feature: `water`)
DBK = []
## Depth Below Surface
## (feature: `water`)
DBS = []
## Depth of Water
## (feature: `water`)
DPT = []
## GPS Satellite Fault Detection
## (feature: `GNSS`)
GBS = []
## * Global Positioning System Fix Data
## (feature: `GNSS`)
GGA = []
## * Geographic Position - Latitude/Longitude
## (feature: `GNSS`)
GLL = []
## * Fix data
## (feature: `GNSS`)
GNS = []
## * GPS DOP and active satellites
## (feature: `GNSS`)
GSA = []
## GPS Pseudorange Noise Statistics
## (feature: `GNSS`)
GST = []
## * Satellites in view
## (feature: `GNSS`)
GSV = []
## Heading - True
## (feature: `other`)
HDT = []
## Meterological Composite
## (feature: `other`)
MDA = []
## Mean Temperature of Water
## (feature: `water`)
MTW = []
## Wind Speed and Angle
## (feature: `other`)
MWV = []
## * Recommended Minimum Navigation Information
## (feature: `GNSS`)
RMC = []
## PGRMZ - Garmin Altitude (Vendor specific)
## (feature: `vendor-specific`)
RMZ = []
## Tracked target message
## (feature: `radar`)
TTM = []
## * Text message
## (feature: `other`)
TXT = []
## Water speed and heading
## (feature: `water`)
VHW = []
## * Track made good and Ground speed
## (feature: `GNSS`)
VTG = []
## Distance - Waypoint to waypoint
## (feature: `waypoint`)
WNC = []
## Time & Date - UTC, day, month, year and local time zone
## (feature: `other`)
ZDA = []
## UTC & Time from origin Waypoint
## (feature: `waypoint`)
ZFO = []
## UTC & Time to Destination Waypoint
## (feature: `waypoint`)
ZTG = []
[[test]]
name = "all_supported_messages"
required-features = ["all-sentences"]
[[test]]
name = "file_log_parser"
required-features = ["all-sentences"]
[[test]]
name = "functional_tests"
required-features = ["all-sentences"]