1 //! # generator
2 //!
3 //! Rust generator library
4 //!
5 
6 #![cfg_attr(nightly, feature(asm))]
7 #![cfg_attr(nightly, feature(repr_simd))]
8 #![cfg_attr(nightly, feature(core_intrinsics))]
9 #![cfg_attr(nightly, feature(naked_functions))]
10 #![cfg_attr(nightly, feature(thread_local))]
11 #![cfg_attr(test, deny(warnings))]
12 #![deny(missing_docs)]
13 #![allow(deprecated)]
14 
15 #[macro_use]
16 extern crate log;
17 
18 mod detail;
19 mod gen_impl;
20 mod reg_context;
21 mod rt;
22 mod scope;
23 mod stack;
24 mod yield_;
25 
26 pub use crate::gen_impl::{Generator, GeneratorImpl, Gn};
27 pub use crate::rt::{get_local_data, is_generator, Error};
28 pub use crate::scope::Scope;
29 pub use crate::yield_::{
30     co_get_yield, co_set_para, co_yield_with, done, get_yield, yield_, yield_from, yield_with,
31 };
32