diff --git a/Xargo.toml b/Xargo.toml new file mode 100644 index 0000000..73f2a1d --- /dev/null +++ b/Xargo.toml @@ -0,0 +1,2 @@ +[target.x86_64-blog_os.dependencies] +alloc = {} diff --git a/src/lib.rs b/src/lib.rs index 847e2bc..f3cc88f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,9 +1,14 @@ #![feature(lang_items)] #![feature(const_fn)] +#![feature(alloc)] #![feature(const_unique_new)] #![feature(unique)] #![no_std] + +#[macro_use] +extern crate alloc; + extern crate rlibc; extern crate volatile; extern crate spin;