contructor_derive
Registers a function to be called before/after main (if an executable) or when loaded/unloaded (if a dynamic library).
Notes
Use this library is unsafe unless you want to interop directly with a FFI library.
Please consider to use the lazy-static
crate instead of it.
Usage
Add the following dependency to your Cargo manifest...
[]
= "0.1.0"
Example
extern crate contructor_derive;
pub static mut RAN: bool = false;
extern "C"
extern "C"
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)