ctor 0.13.0

__attribute__((constructor)) for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use ctor::ctor;

struct FooGeneric<T> {
    _t: ::std::marker::PhantomData<T>,
}

impl<T: Default> FooGeneric<T> {
    #[ctor]
    fn foo() {
    }
}

fn main() {}