all: split reusable components into workspace crates
This commit is contained in:
parent
2a079ed800
commit
657e7ce2f7
225 changed files with 7422 additions and 17602 deletions
134
src/utils.rs
134
src/utils.rs
|
|
@ -1,69 +1,89 @@
|
|||
pub mod array;
|
||||
pub mod array_to_tuple;
|
||||
pub mod asyncevent;
|
||||
pub mod atomic_enum;
|
||||
pub mod binary_search_map;
|
||||
macro_rules! reexport_utils {
|
||||
($($name:ident,)*) => {
|
||||
$(
|
||||
pub mod $name {
|
||||
#[allow(unused_imports)]
|
||||
pub use jay_utils::$name::*;
|
||||
}
|
||||
)*
|
||||
};
|
||||
}
|
||||
|
||||
reexport_utils! {
|
||||
array,
|
||||
array_to_tuple,
|
||||
asyncevent,
|
||||
atomic_enum,
|
||||
binary_search_map,
|
||||
bitfield,
|
||||
bitflags,
|
||||
buf,
|
||||
cell_ext,
|
||||
compat,
|
||||
copyhashmap,
|
||||
double_buffered,
|
||||
errorfmt,
|
||||
fdcloser,
|
||||
free_list,
|
||||
geometric_decay,
|
||||
hash_map_ext,
|
||||
log_on_drop,
|
||||
mmap,
|
||||
nice,
|
||||
nonblock,
|
||||
num_cpus,
|
||||
numcell,
|
||||
on_change,
|
||||
on_drop_event,
|
||||
once,
|
||||
opaque,
|
||||
opaque_cell,
|
||||
opt,
|
||||
option_ext,
|
||||
ordered_float,
|
||||
oserror,
|
||||
page_size,
|
||||
pid_info,
|
||||
pidfd_send_signal,
|
||||
pipe,
|
||||
process_name,
|
||||
ptr_ext,
|
||||
queue,
|
||||
rc_eq,
|
||||
refcounted,
|
||||
smallmap,
|
||||
stack,
|
||||
static_text,
|
||||
string_ext,
|
||||
syncqueue,
|
||||
threshold_counter,
|
||||
tri,
|
||||
unlink_on_drop,
|
||||
vec_ext,
|
||||
vecdeque_ext,
|
||||
vecset,
|
||||
vecstorage,
|
||||
windows,
|
||||
xrd,
|
||||
}
|
||||
|
||||
pub mod bindings;
|
||||
pub mod bitfield;
|
||||
pub mod bitflags;
|
||||
pub mod buf;
|
||||
pub mod buffd;
|
||||
pub mod bufio;
|
||||
pub mod cell_ext;
|
||||
pub mod clone3;
|
||||
pub mod clonecell;
|
||||
pub mod compat;
|
||||
pub mod copyhashmap;
|
||||
pub mod double_buffered;
|
||||
pub mod double_click_state;
|
||||
pub mod errorfmt;
|
||||
pub mod event_listener;
|
||||
pub mod fdcloser;
|
||||
pub mod free_list;
|
||||
pub mod geometric_decay;
|
||||
pub mod hash_map_ext;
|
||||
pub mod line_logger;
|
||||
pub mod linkedlist;
|
||||
pub mod log_on_drop;
|
||||
pub mod mmap;
|
||||
pub mod nice;
|
||||
pub mod nonblock;
|
||||
pub mod num_cpus;
|
||||
pub mod numcell;
|
||||
pub mod line_logger;
|
||||
pub mod object_drop_queue;
|
||||
pub mod on_change;
|
||||
pub mod on_drop_event;
|
||||
pub mod once;
|
||||
pub mod opaque;
|
||||
pub mod opaque_cell;
|
||||
pub mod opt;
|
||||
pub mod option_ext;
|
||||
pub mod ordered_float;
|
||||
pub mod oserror;
|
||||
pub mod page_size;
|
||||
pub mod pending_serial;
|
||||
pub mod pid_info;
|
||||
pub mod pidfd_send_signal;
|
||||
pub mod pipe;
|
||||
pub mod process_name;
|
||||
pub mod ptr_ext;
|
||||
pub mod queue;
|
||||
pub mod rc_eq;
|
||||
pub mod refcounted;
|
||||
pub mod run_toplevel;
|
||||
pub mod scroller;
|
||||
pub mod smallmap;
|
||||
pub mod stack;
|
||||
pub mod static_text;
|
||||
pub mod string_ext;
|
||||
pub mod syncqueue;
|
||||
pub mod threshold_counter;
|
||||
pub mod timer;
|
||||
pub mod tri;
|
||||
pub mod unlink_on_drop;
|
||||
pub mod vec_ext;
|
||||
pub mod vecdeque_ext;
|
||||
pub mod vecset;
|
||||
pub mod vecstorage;
|
||||
pub mod windows;
|
||||
pub mod xrd;
|
||||
|
||||
pub mod clonecell {
|
||||
pub use jay_utils::clonecell::*;
|
||||
|
||||
unsafe impl<T> UnsafeCellCloneSafe for crate::utils::linkedlist::NodeRef<T> {}
|
||||
unsafe impl UnsafeCellCloneSafe for crate::tree::NodeId {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue