ch-parsing 0.2.0

Typed input parsing with structured, locale-neutral errors
Documentation
  • Coverage
  • 100%
    34 out of 34 items documented1 out of 24 items with examples
  • Size
  • Source code size: 27.9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 547.3 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ccmvn

ch-parsing

Input parsing for strings, email addresses and account hashes.

Errors include a stable code, an optional field name and structured parameters. Applications handle translations and HTTP responses.

Usage

use ch_parsing::input::email::parse_required_email;

let email = parse_required_email(" person@example.com ", "email").unwrap();
assert_eq!(email, "person@example.com");

Email parsers trim whitespace and preserve letter case. They accept addresses without display names.

See the API documentation for all parsers. Requires Rust 1.99 or newer.

License

Licensed under the Sustainable Use License 1.0. See LICENSE.md.