1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! SIMD-accelerated UUID operations.
//!
//! # Examples
//!
//! ```
//! use uuid::Uuid;
//! use uuid_simd::UuidExt;
//!
//! let text = "67e55044-10b1-426f-9247-bb680e5fe0c8";
//! let uuid: Uuid = Uuid::parse(text.as_bytes()).unwrap();
//! println!("{}", uuid.format_simple())
//! ```
//!

#![cfg_attr(not(any(feature = "std", test)), no_std)]
#![cfg_attr(feature = "unstable", feature(stdsimd))]
#![cfg_attr(feature = "unstable", feature(arm_target_feature))]
//
#![deny(clippy::all, clippy::cargo, missing_docs)]
#![warn(clippy::todo)]

pub(crate) use simd_abstraction::common::hex as sa_hex;

pub use sa_hex::{AsciiCase, Hex};

mod error;
pub use self::error::Error;
pub(crate) use self::error::ERROR;

#[cfg(test)]
mod tests;

pub mod fallback;

#[macro_use]
mod generic;

mod polyfill;

pub mod arch;

mod auto;
pub use self::auto::*;

use simd_abstraction::item_group;

#[cfg(feature = "uuid")]
item_group! {
    mod ext;
    pub use self::ext::UuidExt;
}