rfc9839-rs 0.0.2

A rust implementation of RFC9839 to test for problematic Unicode code points
Documentation
  • Coverage
  • 0%
    0 out of 17 items documented0 out of 15 items with examples
  • Size
  • Source code size: 6.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.25 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • lorlouis/rfc9839-rs
    5 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • lorlouis

RFC9839-rs

A rust implementation of RFC9839 to test for problematic Unicode code points

Inspired by the Go implementation https://github.com/timbray/RFC9839/tree/main

What is RFC9839

RFC9839 includes a few definition for accepted character classes.

  • Unicode Scalars

    Any Unicode code point except high-surrogate and low-surrogate code points

  • Xml Characters

    Unicode code points that excludes surrogates, legacy C0 controls, and the noncharacters U+FFFE and U+FFFF.

  • Unicode Assignables

    Unicode code points that are not problematic. This, a proper subset of each of the others, comprises all code points that are currently assigned, excluding legacy control codes, or that might be assigned in the future.

Why this crate

  • no_std

    This crates does not make any allocations and thus can be used on embedded systems

  • const fn

    Functions checking individual characters can all be called from a const context.

  • Well tested

    Every character class is checked against the full u32 Range of possible values.