aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2016-01-05 10:43:52 -0700
committerDavid Li <li.davidm96@gmail.com>2016-01-05 10:43:52 -0700
commit1f0cea98f8d30d46e9b04d4076f5f203edecd7bd (patch)
treea438785c1f384f842106a6aaf5537fe487344732
parent56d7d0d5bb5dc8bcbbedbacd1b1b18487f7808c2 (diff)
Re-export elfloader
-rw-r--r--src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6c521d7..4b976f1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -15,18 +15,21 @@
// along with rustv. If not, see <http://www.gnu.org/licenses/>.
#![feature(braced_empty_structs, step_by)]
+extern crate elfloader as elfloader_lib;
+
pub mod isa;
pub mod binary;
pub mod memory;
pub mod simulator;
+pub use elfloader_lib as elfloader;
+
#[test]
fn test_elfloader() {
use std::io::prelude::*;
use std::fs::File;
use std::rc::Rc;
use std::cell::RefCell;
- extern crate elfloader;
use memory::{Mmu, MemoryInterface};
let mut f = File::open("../riscv/kernel").unwrap();