-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkit.rs
64 lines (62 loc) · 1.81 KB
/
kit.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
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
60
61
62
63
64
pub mod sync {
pub use super::sync_pre::*;
pub use std::sync::mpsc::{Receiver, SyncSender as Sender};
pub mod chan {
pub use std::sync::mpsc::sync_channel as bounded;
}
}
pub mod asyn {
pub use super::sync_pre::*;
pub mod chan {
pub use tokio::sync::mpsc::unbounded_channel as unbounded;
}
pub use tokio::sync::mpsc::{UnboundedReceiver as Receiver, UnboundedSender as Sender};
}
mod sync_pre {
pub mod task {
pub use super::super::policies::task::Runtime;
pub use tokio::{task::*, time::sleep};
}
pub use super::policies::task::{pre::*, Task};
pub use std::sync::{atomic::*, Barrier, Mutex, MutexGuard, OnceLock};
pub use std::thread::{self, JoinHandle};
}
#[cfg(not(feature = "adv_fs"))]
pub mod ser {}
#[cfg(feature = "adv_fs")]
pub mod ser {
pub mod SERDE {
pub use bincode::{deserialize as FromVec, serialize as ToVec};
pub use serde_json::{from_str as FromStr, to_string as ToStr, to_vec as ToU8};
}
pub use serde::{de, Deserialize, Deserializer, Serialize, Serializer};
}
pub mod stdlib {
pub use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet, VecDeque};
pub use std::{borrow::Borrow, cell::Cell, char, fmt, fmt::Debug, iter, mem, ops, ops::Range, ptr, rc::Rc, rc::Weak, slice, sync::Arc, time};
pub use std::{cmp::Ordering as ord, marker::PhantomData as Dummy, mem::size_of as type_size};
}
pub mod lib {
pub use super::{policies::ext::*, policies::pre::*, stdlib::*, GL, GL::types::*};
pub use bitflags::bitflags;
}
pub mod math {
pub use super::policies::math::{ext::*, la, la::na};
}
pub mod GL {
pub use super::opengl::{event, pre::*, window};
}
pub mod text_color {
pub mod term {
pub mod term_color {
pub use yansi::disable;
pub use yansi::enable;
}
pub use yansi::Paint as text_color_prelude;
}
}
pub use policies::ext::*;
#[macro_use]
mod policies;
#[macro_use]
mod opengl;