init

Crates.ioinit
lib.rsinit
version0.2.0
sourcesrc
created_at2017-02-14 08:59:09.014179
updated_at2017-02-15 08:47:45.576539
descriptionMark a function to run before main.
homepagehttps://github.com/mehcode/init-rs
repositoryhttps://github.com/mehcode/init-rs/tree/master/init
max_upload_size
id8516
size1,887
Ryan Leckey (mehcode)

documentation

https://docs.rs/init

README

init

Rust Crates.io Docs.rs

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.

Commit count: 0

cargo fmt