| 1 |
// This file is part of ICU4X. For terms of use, please see the file |
| 2 |
// called LICENSE at the top level of the ICU4X source tree |
| 3 |
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). |
| 4 |
|
| 5 |
// https://github.com/unicode-org/icu4x/blob/main/documents/process/boilerplate.md#library-annotations |
| 6 |
#![cfg_attr(not(any(test, doc)), no_std)] |
| 7 |
#![cfg_attr( |
| 8 |
not(test), |
| 9 |
deny( |
| 10 |
clippy::indexing_slicing, |
| 11 |
clippy::unwrap_used, |
| 12 |
clippy::expect_used, |
| 13 |
clippy::panic, |
| 14 |
) |
| 15 |
)] |
| 16 |
#![warn(missing_docs)] |
| 17 |
|
| 18 |
//! A crate providing unvalidated string and character types. |
| 19 |
|
| 20 |
#[cfg(feature = "alloc")] |
| 21 |
extern crate alloc; |
| 22 |
|
| 23 |
mod uchar; |
| 24 |
mod ustr; |
| 25 |
|
| 26 |
pub use uchar::PotentialCodePoint; |
| 27 |
pub use ustr::PotentialUtf16; |
| 28 |
pub use ustr::PotentialUtf8; |
| 29 |
|
| 30 |
#[cfg(feature = "writeable")] |
| 31 |
mod writeable; |