diff --git a/Cargo.toml b/Cargo.toml index 04c79bcd..e7f18f4f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ crate-type = ["staticlib"] [dependencies] rlibc = "0.1.4" spin = "0.3.4" +bump_allocator = {path="libs/bump_allocator"} [dependencies.x86] version = "0.6.0" diff --git a/src/lib.rs b/src/lib.rs index 55987839..19a3f1ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,6 +9,7 @@ #![feature(lang_items)] #![feature(const_fn, unique)] +#![feature(alloc, collections)] #![no_std] extern crate rlibc; @@ -18,6 +19,11 @@ extern crate multiboot2; extern crate bitflags; extern crate x86; +extern crate bump_allocator; +extern crate alloc; +#[macro_use] +extern crate collections; + #[macro_use] mod vga_buffer; mod memory;