Crate simdutf

source ·
Expand description

Unicode validation and transcoding at billions of characters per second.

This crate is the Rust binding of simdutf.

§Compilation

This crate works out of the box as long as you have a C++11-compatible toolchain installed correctly.

simdutf links C++ standard library, which adds a dynamic linking dependency.

For more details, see simdutf documentation and cc documentation.

Here is an example for local benchmark:

export RUSTFLAGS='-C target-cpu=native'
export CXXFLAGS='-march=native'
cargo build --release

Structs§

  • The encoding of a string, defined as a bitflags type.
  • The result type of validation and transcoding.

Enums§

  • The error code type of validation and transcoding.

Functions§