tor_netdoc/parse2/poc.rs
1//! Proof-of-concept parser using parse2 for network status documents.
2//!
3//! # Naming conventions
4//!
5//! * `DocumentName`: important types,
6//! including network documents or sub-documents,
7//! eg `NetworkStatsuMd` and `RouterVote`,
8//! and types that are generally useful.
9//! * `NddDoucmnetSection`: sections and sub-documents
10//! that the user won't normally need to name.
11//! * `NdiItemValue`: parsed value for a network document Item.
12//! eg `NdiVoteStatus` representing the whole of the RHS of a `vote-status` Item.
13//! Often not needed since `ItemValueParseable` is implemented for suitable tuples.
14//! * `NdaArgumentValue`: parsed value for a single argument;
15//! eg `NdaVoteStatus` representing the `vote` or `status` argument.
16
17use super::*;
18
19pub mod authcert;
20pub mod netstatus;
21
22#[cfg(test)]
23mod test;