Skip to main content

Crate simdutf8_cli

Crate simdutf8_cli 

Source
Expand description

simdutf8-cli — a small, security-hardened command-line front-end for the simdutf8 crate.

The crate is split into focused, independently testable modules:

  • validate — thin, allocation-free wrappers around simdutf8 that turn a byte slice into a validate::Validity verdict.
  • path_security — hardened file opening that resolves symlinks, optionally confines inputs to a base directory, rejects non-regular files and bounds the number of bytes read (defence against path traversal, symlink and resource-exhaustion attacks).
  • report — rendering of verdicts as human-readable text or JSON.
  • cli — argument parsing and the cli::run entry point used by the binary and by the integration tests.

No unsafe code is used anywhere in this crate.

Modules§

cli
Command-line interface: argument definitions and the run entry point.
path_security
Hardened file access for untrusted path arguments.
report
Rendering of Validity verdicts as text, JSON, SARIF 2.1.0, or Markdown.
validate
UTF-8 validation built on top of simdutf8.