pluggable_interrupt_os 0.5.3

Enables user to create a simple x86 OS by supplying interrupt handlers
Documentation
#![no_std]
#![no_main]

mod serial;
mod vga_buffer;

use pc_keyboard::DecodedKey;
use pluggable_interrupt_os::HandlerTable;

fn start() {
    println!("Hello, world!");
}

fn tick() {
    print!(".");
}

fn key(key: DecodedKey) {
    match key {
        DecodedKey::Unicode(character) => print!("{}", character),
        DecodedKey::RawKey(key) => print!("{:?}", key),
    }
}

#[no_mangle]
pub extern "C" fn _start() -> ! {
    HandlerTable::new()
        .keyboard(key)
        .timer(tick)
        .startup(start)
        .start()
}