2 unstable releases
Uses old Rust 2015
0.2.0 | Feb 15, 2017 |
---|---|
0.1.0 | Feb 14, 2017 |
#34 in #mark
Used in init
4KB
57 lines
init
Mark a function to run before main.
Install
[dependencies]
init = "0.2"
[build-dependencies]
init = "0.2"
Usage
src/main.rs
#![feature(proc_macro)]
extern crate init;
use init::init;
#[init]
fn init() {
// [...]
}
build.rs
extern crate init;
fn main() {
init::build();
}
License
Init is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.
Dependencies
~2MB
~43K SLoC