Add more from the std

This commit is contained in:
2026-03-18 14:59:16 +01:00
parent 9413fba265
commit 51780b3a78
35 changed files with 9176 additions and 1270 deletions

View File

@@ -6,18 +6,23 @@ pub mod join_handle;
pub mod lifecycle;
pub mod local;
pub mod main_thread;
pub mod scoped;
pub mod spawnhook;
pub mod thread;
use core::any::Any;
pub use crate::sys::thread::yield_now;
pub(crate) use current::current_or_unnamed;
pub use current::current_id;
pub(crate) use current::current_or_unnamed;
pub(crate) use current::current_os_id;
pub(crate) use current::with_current_name;
pub use functions::sleep;
pub use id::ThreadId;
pub(crate) use lifecycle::ThreadInit;
pub use local::LocalKey;
pub use thread::Thread;
pub(crate) use lifecycle::ThreadInit;
pub use local::AccessError;
// Implementation details used by the thread_local!{} macro.
#[doc(hidden)]
@@ -30,3 +35,7 @@ pub mod local_impl {
#[stable(feature = "rust1", since = "1.0.0")]
#[doc(search_unbox)]
pub type Result<T> = crate::result::Result<T, Box<dyn Any + Send + 'static>>;
pub fn panicking() -> ! {
todo!()
}