form_net/lib.rs
1//! # form_net
2//!
3//! Sans-IO form parsing for Rust: `application/x-www-form-urlencoded` and
4//! streaming `multipart/form-data`, with budgets checked before allocation,
5//! safe spilling of uploads, and typed extraction. No third-party
6//! dependencies.
7//!
8//! ## Status
9//!
10//! Design lock (`0.2.0`). The public API is specified item by item in
11//! `docs/API.md`, the design in `dev/PLAN.md`, and the schedule in
12//! `dev/ROADMAP.md` (all in the
13//! [repository](https://github.com/jamesgober/form-net)). The parsers ship
14//! in `0.3.0`.
15
16#![doc(html_root_url = "https://docs.rs/form-net")]
17#![cfg_attr(docsrs, feature(doc_cfg))]
18#![forbid(unsafe_code)]
19#![deny(missing_docs)]
20
21/// Crate version string, populated by Cargo at build time.
22pub const VERSION: &str = env!("CARGO_PKG_VERSION");
23
24#[cfg(test)]
25mod tests {
26 use super::VERSION;
27
28 #[test]
29 fn version_matches_manifest() {
30 assert_eq!(VERSION, env!("CARGO_PKG_VERSION"));
31 assert_eq!(VERSION.split('.').count(), 3, "expected MAJOR.MINOR.PATCH");
32 }
33}