ctor 0.10.1

__attribute__((constructor)) for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Basic example of using the `ctor` crate.

use ctor::ctor;

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

fn main() {
    println!("main");
}