dtor 0.12.0

__attribute__((destructor)) for Rust
Documentation
1
2
3
4
5
6
use dtor::dtor;

#[dtor]
unsafe fn foo() {
    println!("foo");
}