Skip to content
Snippets Groups Projects
Commit bdff0dd0 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix documentation

parent 9a9f5d17
No related branches found
No related tags found
No related merge requests found
...@@ -26,5 +26,6 @@ default-features = false ...@@ -26,5 +26,6 @@ default-features = false
[features] [features]
default = [] default = []
doc = []
live = [] live = []
multi_core = [] multi_core = []
...@@ -61,6 +61,7 @@ pub mod context; ...@@ -61,6 +61,7 @@ pub mod context;
pub mod devices; pub mod devices;
/// ELF file parsing /// ELF file parsing
#[cfg(not(feature="doc"))]
pub mod elf; pub mod elf;
/// External functions /// External functions
...@@ -70,6 +71,7 @@ pub mod externs; ...@@ -70,6 +71,7 @@ pub mod externs;
pub mod memory; pub mod memory;
/// Panic /// Panic
#[cfg(not(any(feature="doc", test)))]
pub mod panic; pub mod panic;
/// Schemes, filesystem handlers /// Schemes, filesystem handlers
......
...@@ -2,11 +2,9 @@ ...@@ -2,11 +2,9 @@
use interrupt; use interrupt;
#[cfg(not(test))]
#[lang = "eh_personality"] #[lang = "eh_personality"]
pub extern "C" fn eh_personality() {} pub extern "C" fn eh_personality() {}
#[cfg(not(test))]
/// Required to handle panics /// Required to handle panics
#[lang = "panic_fmt"] #[lang = "panic_fmt"]
#[no_mangle] #[no_mangle]
......
...@@ -15,6 +15,7 @@ use interrupt; ...@@ -15,6 +15,7 @@ use interrupt;
use context; use context;
use context::ContextId; use context::ContextId;
use context::file::FileDescriptor; use context::file::FileDescriptor;
#[cfg(not(feature="doc"))]
use elf::{self, program_header}; use elf::{self, program_header};
use scheme::FileHandle; use scheme::FileHandle;
use syscall; use syscall;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment