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 std::mem::{size_of, zeroed};
use core::prelude::*;
use core::simd::u64x2;
use core::mem::{size_of, zeroed};
use stack::Stack;

View File

@ -1,5 +1,8 @@
use std::mem::transmute;
use std::raw;
use core::prelude::*;
use core::mem::transmute;
use core::raw;
use alloc::boxed::Box;
use fn_box::FnBox;
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;
pub use context::Context;
mod std { pub use core::fmt; }
#[macro_escape]
mod macros;

View File

@ -1,6 +1,8 @@
extern crate libc;
use std::os::{errno, page_size, MemoryMap, MapReadable, MapWritable,
MapNonStandardFlags};
extern crate std;
use self::std::prelude::*;
use self::std::os::{errno, page_size, MemoryMap, MapReadable, MapWritable,
MapNonStandardFlags};
extern "C" {
#[link_name = "lwt_stack_register"]

View File

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