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
52
53
54
55
56
57
58
59
#![doc = include_str!("../README.md")]
#![no_std]
#![deny(unsafe_op_in_unsafe_fn)]
#![allow(clippy::bool_assert_comparison)]
#![allow(clippy::needless_return)] // <https://github.com/rust-lang/rust-clippy/issues/7637>
#![cfg_attr(feature = "doc_cfg", feature(doc_cfg))]
#![feature(array_methods)]
#![feature(never_type)]
#![feature(type_alias_impl_trait)]
#![feature(const_impl_trait)]
#![feature(slice_ptr_len)]
#![feature(slice_ptr_get)]
#![feature(once_cell)]
#![feature(let_else)] // <https://github.com/rust-lang/rust/issues/87335>

#[cfg(any(test, feature = "std"))]
extern crate std;

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

/// Used by [`state!`].
#[doc(hidden)]
pub use pin_utils::pin_mut;

#[cfg(doc)]
#[doc = include_str!("../CHANGELOG.md")]
pub mod _changelog_ {}

#[macro_use]
mod macros;

mod core;
pub mod hl;
pub mod raw;
pub mod utils {
    pub(crate) mod panicking;
    #[cfg(not(miri))]
    pub(crate) mod pin;
    #[cfg(miri)]
    #[path = "pin_boxed.rs"]
    pub(crate) mod pin;
    #[cfg(feature = "async")]
    pub(crate) mod pinlock;
    #[cfg(feature = "std")]
    pub(crate) mod pinsync;
    pub(crate) mod rbtree;

    mod pinderef;
    pub use pinderef::*;
}

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
        assert_eq!(2 + 2, 4);
    }
}