is_utf8 0.1.0-alpha

Provides functions to determine if a sequence of bytes is valid utf-8.
Documentation
//! Daniel Lemire's UTF-8 validation algorithm
//!
//! The algorithm is discussed in [a blog post][1] by him.
//!
//! [1]: https://lemire.me/blog/2018/10/19/validating-utf-8-bytes-using-only-0-45-cycles-per-byte-avx-edition/

#[cfg(any(all(target_feature = "avx", target_feature = "avx2"), dox))]
#[doc(cfg(all(target_feature = "avx", target_feature = "avx2")))]
pub mod avx;
#[cfg(any(
    all(
        target_feature = "sse",
        target_feature = "sse2",
        target_feature = "sse3",
        target_feature = "sse4.1",
        target_feature = "sse4.2"
    ),
    dox
))]
#[doc(cfg(all(
    target_feature = "sse",
    target_feature = "sse2",
    target_feature = "sse3",
    target_feature = "sse4.1",
    target_feature = "sse4.2",
)))]
pub mod sse;