Crate booter[][src]

Expand description

This crate allows a simple means to register FnOnce functions to be called on boot

booter::call_on_boot!({
  println!("Hello World!");
});

fn main() {
  booter::boot();
  booter::assert_booted();
}

Macros

call_on_boot

Register FnOnce to be called on booter::boot

Functions

assert_booted

Development assertion to ensure booter::boot called. Release builds skip check

boot

Call all functions captured by booter::call_on_boot.