#![cfg_attr(feature = "better-docs",
cfg_attr(all(), doc = include_str!("lib.md")),
)]
#![cfg_attr(feature = "nightly", feature(
// Nightly features.
doc_auto_cfg,
doc_notable_trait,
))]
#"
)]
#![cfg_attr(not(feature = "better-docs"),
doc = "for more info about this crate."
)]
#![allow(nonstandard_style)]
#![warn(missing_docs)]
#![deny(unused_must_use)]
#![doc(test(attr(deny(warnings), allow(unused), deny(unused_must_use))))]
#![no_std]
#[cfg(test)]
extern crate self as next_gen;
macro_rules! use_prelude {() => (
#[allow(unused_imports)]
use crate::utils::prelude_internal::*;
)}
use_prelude!();
#[cfg(feature = "alloc")]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
#[cfg_attr(feature = "better-docs", cfg_attr(all(), doc = concat!(
"\n", "# Example",
"\n", "",
"\n", "```rust",
// "\n", "# const _: &str = ::core::stringify! {", "\n",
"\n", include_str!("doc_examples/generator.rs"),
// "\n", "# };",
"\n", "```",
)))]
#[cfg_attr(feature = "better-docs", cfg_attr(all(), doc = concat!(
"\n", "",
"\n", "```rust",
// "\n", "# const _: &str = ::core::stringify! {",
"\n", include_str!("doc_examples/generator_desugared.rs"),
// "\n", "# };",
"\n", "```",
)))]
pub use ::next_gen_proc_macros::generator;
pub use {
};
pub mod generator;
pub mod generator_fn;
pub mod prelude;
mod iter;
mod public_macros;
mod utils;
mod waker;
#[path = "macro_internals.rs"]
#[doc(hidden)] pub
mod __;
#[cfg(test)]
mod tests;