#[dtor]Expand description
Marks a function as a library/executable destructor. This uses OS-specific linker sections to call a specific function at termination time.
Multiple shutdown functions are supported, but the invocation order is not guaranteed.
#[dtor]
fn shutdown() {
/* ... */
}