#![no_std] #![forbid(unsafe_code)] pub mod protocol; pub mod server; #[cfg(test)] #[path = "tests/mod.rs"] mod tests; pub fn run() -> ! { let console = libkos::start::console(); let mut srv = server::LogServer::with_output(|bytes: &[u8]| { if let Some(console) = console { for &b in bytes { libkos::syscall::debug_putchar(console, b); } } }); let ep = types::bounded::CapSlot::new(0).unwrap(); server_framework::serve(&mut srv, ep) }