ctor 0.13.0

__attribute__((constructor)) for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Basic example of using the `ctor` crate.
#![cfg_attr(linktime_used_linker, feature(used_with_arg))]

use ctor::ctor;

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

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