usage_argv/lib.rs
1//! The parser runtime for [usage-rs](https://github.com/jdx/usage-rs).
2//!
3//! This crate holds the part of a CLI parser that runs on every invocation: a
4//! cursor over `argv` and a matcher that walks static tables emitted by
5//! `usage-derive`. It deliberately has no dependencies, builds no command tree,
6//! and allocates nothing when a parse succeeds.
7//!
8//! Help text, error rendering, and spec emission are *not* here. They are cold
9//! paths, and keeping them out of this crate is what makes the hot path small.
10//!
11//! # Status
12//!
13//! Reserved and empty. The parser lands in milestone 2 — see
14//! [PROGRESS.md](https://github.com/jdx/usage-rs/blob/main/PROGRESS.md).
15
16#![forbid(unsafe_code)]