[package]
name = "nmea"
version = "0.6.0"
authors = [
"Felix Obenhuber <felix@obenhuber.de>",
"Evgeniy A. Dushistov <dushistov@mail.ru>",
"Henrik Böving <hargonix@gmail.com>",
"Lachezar Lechev <elpiel93@gmail.com>",
"AeroRust <aerospace.rust@gmail.com>",
]
categories = ["parser-implementations", "no-std", "embedded"]
keywords = ["NMEA", "gps", "glonass", "coordinate", "position"]
description = "Simple NMEA 0183 parser"
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/nmea"
repository = "https://github.com/AeroRust/nmea"
readme = "README.md"
edition = "2021"
rust-version = "1.64"
[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.7"
nom = { version = "7.1", default-features = false }
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.0", default-features = false, optional = true }
[dev-dependencies]
approx = "0.5"
doc-comment = "0.3"
pretty_assertions = "1"
quickcheck = { version = "1", default-features = false }
criterion = "0.4"
serde_json = "1.0"
[features]
default = ["std", "all-sentences"]
std = ["nom/std", "chrono/std", "arrayvec/std", "serde?/std", "serde_with?/std"]
serde = [
"serde/derive",
"serde_with/macros",
"serde_with/chrono_0_4",
"heapless/serde",
"chrono/serde",
"arrayvec/serde"
]
all-sentences = ["GNSS", "waypoint", "maritime", "water", "vendor-specific", "other"]
GNSS = ["ALM", "GBS", "GGA", "GLL", "GNS", "GSA", "GSV", "RMC", "VTG"]
waypoint = ["AAM", "BOD", "BWC", "BWW", "ZFO", "ZTG"]
maritime = ["waypoint", "water"]
water = ["DBK", "MTW", "VHW"]
vendor-specific = ["RMZ"]
other = ["HDT", "MDA", "MWV", "TXT", "ZDA"]
AAM = []
ALM = []
BOD = []
BWC = []
BWW = []
DBK = []
GBS = []
GGA = []
GLL = []
GNS = []
GSA = []
GSV = []
HDT = []
MDA = []
MTW = []
MWV = []
RMC = []
RMZ = []
TXT = []
VHW = []
VTG = []
ZDA = []
ZFO = []
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"]
[[bench]]
name = "nom_parsing"
harness = false
[[bench]]
name = "gsv_parser"
harness = false