nmea 0.7.0

Simple NMEA 0183 parser
Documentation
//! NMEA 0183 parser
//!
//! Use [`Nmea::parse()`] and [`Nmea::parse_for_fix()`]
//! to preserve state between receiving new NMEA sentence,
//! and [`parse_str()`] or [`parse_bytes()`] to parse sentences without state.
//!
//! Units used: **celsius**, **degrees**, **knots**, **meters** for altitude
//!
//! # Supported sentences:
//!
//! NMEA Standard Sentences
//!
//! - AAM
//! - ALM
//! - APA
//! - BOD
//! - BWC
//! - BWW
//! - DBK
//! - DPT
//! - GBS
//! - GGA *
//! - GLL *
//! - GNS *
//! - GSA *
//! - GST
//! - GSV *
//! - HDT
//! - MDA
//! - MTW
//! - MWV
//! - RMC *
//! - TTM
//! - VHW
//! - VTG *
//! - WNC
//! - ZDA
//! - ZFO
//! - ZTG
//!
//! Other Sentences
//! - TXT *
//!
//! Vendor Extension
//! - PGRMZ
//!
//! **\* [`Nmea::parse()`] supported sentences**
//!
//!
//! # Crate features
//!
//! - `default` features - `std`
//! - `std` - enable `std`
//! - `serde` - enable `serde` Serialize and Deserialize derives
//! - `defmt-03` - enable the `defmt@0.3` Format derives
//!
//! [`Nmea::parse()`]: Nmea::parse
//! [`Nmea::parse_for_fix()`]: Nmea::parse_for_fix

// only enables the `doc_cfg` feature when
// the `docsrs` configuration attribute is defined
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(not(any(feature = "std", test)), no_std)]
#![deny(unsafe_code, rustdoc::broken_intra_doc_links)]

mod error;
pub(crate) mod parse;
mod parser;

pub mod sentences;

#[doc(inline)]
pub use parser::*;

pub use error::Error;

#[doc(inline)]
pub use parse::*;

#[cfg(doctest)]
// Test the README examples
doc_comment::doctest!("../README.md");