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:
parent
d20d637bd9
commit
7fb6b2e778
1 changed files with 10 additions and 3 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue