๐ฌThis is a nightly-only experimental API. (
rt
)Expand description
Runtime services
The rt
module provides a narrow set of runtime services,
including the global heap (exported in heap
) and unwinding and
backtrace support. The APIs in this module are highly unstable,
and should be considered as private implementation details for the
time being.
Re-exportsยง
pub use crate::panicking::begin_panic;
Experimental pub use crate::panicking::panic_count;
Experimental
Macrosยง
- rtabort ๐
Experimental - rtassert ๐
Experimental - rtprintpanic ๐
Experimental - rtunwrap ๐
Experimental
Functionsยง
- cleanup ๐
Experimental - handle_
rt_ ๐panic Experimental - init ๐ โ
Experimental - lang_
start ๐Experimental - lang_
start_ ๐internal Experimental - panic_
display Experimental - panic_
fmt Experimental - The entry point for panicking with a formatted message.
- thread_
cleanup ๐Experimental - Clean up the thread-local runtime state. This should be run after all other code managed by the Rust runtime, but will not cause UB if that condition is not fulfilled. Also note that this function is not guaranteed to be run, but skipping it will cause leaks and therefore is to be avoided.