1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

add missing logging examples

This commit is contained in:
Stefan Lankes 2017-07-19 09:38:36 +02:00
parent d20d637bd9
commit 7fb6b2e778

View file

@ -37,15 +37,22 @@
extern crate rlibc;
extern crate spin;
// These need to be visible to the linker, so we need to export them.
pub use runtime_glue::*;
#[macro_use]
mod macros;
#[macro_use]
mod logging;
mod runtime_glue;
mod console;
// These need to be visible to the linker, so we need to export them.
pub use runtime_glue::*;
pub use logging::*;
#[no_mangle]
pub extern "C" fn rust_main() {
println!("Hello from Rust!");
info!("hello");
//warn!("warning");
//error!("oops");
}