Fix documentation

This commit is contained in:
Jeremy Soller
2017-09-26 13:57:16 -06:00
parent 9a9f5d17cb
commit bdff0dd004
4 changed files with 4 additions and 2 deletions

View File

@@ -26,5 +26,6 @@ default-features = false
[features]
default = []
doc = []
live = []
multi_core = []

View File

@@ -61,6 +61,7 @@ pub mod context;
pub mod devices;
/// ELF file parsing
#[cfg(not(feature="doc"))]
pub mod elf;
/// External functions
@@ -70,6 +71,7 @@ pub mod externs;
pub mod memory;
/// Panic
#[cfg(not(any(feature="doc", test)))]
pub mod panic;
/// Schemes, filesystem handlers

View File

@@ -2,11 +2,9 @@
use interrupt;
#[cfg(not(test))]
#[lang = "eh_personality"]
pub extern "C" fn eh_personality() {}
#[cfg(not(test))]
/// Required to handle panics
#[lang = "panic_fmt"]
#[no_mangle]

View File

@@ -15,6 +15,7 @@ use interrupt;
use context;
use context::ContextId;
use context::file::FileDescriptor;
#[cfg(not(feature="doc"))]
use elf::{self, program_header};
use scheme::FileHandle;
use syscall;