#shutdown #stdlib #ffi #std

shutdown_hooks

Shutdown hooks for Rust. Currently a friendly wrapper around atexit, will eventually allow you to remove hooks

5 releases

Uses old Rust 2015

0.1.0 Jul 29, 2015
0.0.3 Jul 29, 2015
0.0.2 Jul 29, 2015
0.0.1 Jul 29, 2015
0.0.0 Jul 29, 2015

#22 in #stdlib

Download history 13939/week @ 2024-09-01 11592/week @ 2024-09-08 11085/week @ 2024-09-15 12181/week @ 2024-09-22 13869/week @ 2024-09-29 14557/week @ 2024-10-06 14283/week @ 2024-10-13 13337/week @ 2024-10-20 15377/week @ 2024-10-27 17419/week @ 2024-11-03 16437/week @ 2024-11-10 13861/week @ 2024-11-17 14069/week @ 2024-11-24 18617/week @ 2024-12-01 17056/week @ 2024-12-08 14965/week @ 2024-12-15

66,530 downloads per month
Used in 5 crates (3 directly)

MIT license

3KB

shutdown_hooks Build Status Crates.io

Shutdown hook functionality for Rust. Basically a wrapper around atexit for now

An unspecified future release will feature the ability to remove shutdown hooks

#Notes

So far, I have successfully tested an eight-second long shutdown hook under Windows. I haven't tested any longer than that, but you should be fine. If not, you would have faced the same issue with atexit anyway :)


lib.rs:

Provides access to shutdown hooks

Currently, only adding new hooks is supported.

An unspecified future release will have a collection of hooks and have the ability to remove them

No runtime deps