forked from M-Labs/libfringe
Rust updates
This commit is contained in:
parent
8515bf0fa1
commit
b0dcc65304
6
build.rs
6
build.rs
|
@ -1,11 +1,11 @@
|
|||
#![feature(io, path, os)]
|
||||
#![feature(old_io, old_path)]
|
||||
use std::old_io::Command;
|
||||
use std::old_io::fs::PathExtensions;
|
||||
use std::old_io::fs;
|
||||
use std::os;
|
||||
use std::env;
|
||||
|
||||
fn main() {
|
||||
let out_dir = os::getenv("OUT_DIR").unwrap();
|
||||
let out_dir = env::var("OUT_DIR").unwrap();
|
||||
let mut objects = Vec::new();
|
||||
|
||||
let files = fs::readdir(&Path::new("src")).unwrap();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#![feature(no_std)]
|
||||
#![feature(asm, core)]
|
||||
#![feature(os, libc)]
|
||||
#![feature(os, libc, page_size)]
|
||||
#![no_std]
|
||||
|
||||
#[macro_use]
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
extern crate libc;
|
||||
extern crate std;
|
||||
use self::std::prelude::v1::*;
|
||||
use self::std::os::{errno, page_size, MemoryMap};
|
||||
use self::std::os::{errno, MemoryMap};
|
||||
use self::std::env::page_size;
|
||||
use self::std::os::MapOption::{MapReadable, MapWritable, MapNonStandardFlags};
|
||||
use stack;
|
||||
|
||||
|
|
Loading…
Reference in New Issue