1
0
Fork 0

free ourselves from the shackles of libstd

This commit is contained in:
edef 2014-12-24 07:28:21 +01:00
parent a94bc324fe
commit 59e723d099
5 changed files with 21 additions and 8 deletions

View File

@ -1,5 +1,6 @@
use std::simd::u64x2; use core::prelude::*;
use std::mem::{size_of, zeroed}; use core::simd::u64x2;
use core::mem::{size_of, zeroed};
use stack::Stack; use stack::Stack;

View File

@ -1,5 +1,8 @@
use std::mem::transmute; use core::prelude::*;
use std::raw;
use core::mem::transmute;
use core::raw;
use alloc::boxed::Box;
use fn_box::FnBox; use fn_box::FnBox;
use stack::Stack; use stack::Stack;

View File

@ -1,8 +1,15 @@
#![feature(default_type_params, macro_rules)] #![feature(default_type_params, macro_rules, phase, globs)]
#![no_std]
#[phase(plugin, link)]
extern crate core;
extern crate alloc;
extern crate fn_box; extern crate fn_box;
pub use context::Context; pub use context::Context;
mod std { pub use core::fmt; }
#[macro_escape] #[macro_escape]
mod macros; mod macros;

View File

@ -1,5 +1,7 @@
extern crate libc; extern crate libc;
use std::os::{errno, page_size, MemoryMap, MapReadable, MapWritable, extern crate std;
use self::std::prelude::*;
use self::std::os::{errno, page_size, MemoryMap, MapReadable, MapWritable,
MapNonStandardFlags}; MapNonStandardFlags};
extern "C" { extern "C" {

View File

@ -1,5 +1,5 @@
use platform; use platform;
use std::ptr; use core::ptr;
pub enum Stack { pub enum Stack {
Native { Native {