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
#![cfg_attr(feature = "external_doc",
    feature(external_doc)
)]
#![cfg_attr(feature = "external_doc",
    doc(include = "../README.md")
)]
#![cfg_attr(not(feature = "external_doc"),
    doc = "See [crates.io](https://crates.io/crates/next-gen)"
)]
#![cfg_attr(not(feature = "external_doc"),
    doc = "for more info about this crate."
)]

#![warn(
    future_incompatible,
    rust_2018_compatibility,
    missing_docs,
    clippy::cargo,
    clippy::pedantic,
)]
#![deny(
    unused_must_use,
)]
#![doc(test(attr(deny(warnings))))]
#![cfg_attr(feature = "allow-warnings",
    allow(warnings),
)]

#![cfg_attr(not(feature = "alloc"),
    no_std,
)]

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

#[path = "public_prelude.rs"]
pub
mod prelude;

mod public_macros;

#[macro_use]
mod utils;

mod iter;

mod waker;

pub use self::generator::*;
mod generator;

#[doc(hidden)] pub use ::core;
#[doc(hidden)] pub use ::proc_macro::next_gen_hack;
pub use ::proc_macro::generator;

#[cfg(test)]
mod tests;