stdx/
lib.rs

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
#![deny(unsafe_code)]
#![deny(clippy::all, clippy::pedantic, clippy::cargo)]
#![allow(
    clippy::missing_errors_doc, // TODO
)]
// ---
#![cfg_attr(not(any(test, feature = "std")), no_std)]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(feature = "alloc")]
extern crate alloc;

#[macro_use]
mod macros;

mod sealed {
    pub trait Sealed {}

    pub struct Internal {}
}

pub mod default;
pub mod mem;
pub mod ptr;
pub mod str;

#[cfg(feature = "alloc")]
cfg_group! {
    #[cfg_attr(docsrs, doc(cfg(feature = "alloc")))]
    pub mod string;
}