small_ctor 0.1.2

A minimal, dependency free version of the ctor crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate small_ctor;

/// This is a small example function that is executed as ctor
#[small_ctor::ctor]
unsafe fn hello() {
    println!("life before main");
}

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