init-0.2.0 doesn't have any documentation.
Mark a function to run before main.
src/main.rs
extern crate init;
use init;
build.rs
extern crate init;
Mark a function to run before main.
src/main.rs
extern crate init;
use init::init;
#[init]
fn init() {
}
fn main() {
}
build.rs
extern crate init;
fn main() {
init::build();
}