1
0
Fork 0

Rust updates

This commit is contained in:
edef 2015-03-03 01:51:45 -05:00
parent 8515bf0fa1
commit b0dcc65304
3 changed files with 6 additions and 5 deletions

View File

@ -1,11 +1,11 @@
#![feature(io, path, os)] #![feature(old_io, old_path)]
use std::old_io::Command; use std::old_io::Command;
use std::old_io::fs::PathExtensions; use std::old_io::fs::PathExtensions;
use std::old_io::fs; use std::old_io::fs;
use std::os; use std::env;
fn main() { fn main() {
let out_dir = os::getenv("OUT_DIR").unwrap(); let out_dir = env::var("OUT_DIR").unwrap();
let mut objects = Vec::new(); let mut objects = Vec::new();
let files = fs::readdir(&Path::new("src")).unwrap(); let files = fs::readdir(&Path::new("src")).unwrap();

View File

@ -1,6 +1,6 @@
#![feature(no_std)] #![feature(no_std)]
#![feature(asm, core)] #![feature(asm, core)]
#![feature(os, libc)] #![feature(os, libc, page_size)]
#![no_std] #![no_std]
#[macro_use] #[macro_use]

View File

@ -1,7 +1,8 @@
extern crate libc; extern crate libc;
extern crate std; extern crate std;
use self::std::prelude::v1::*; 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 self::std::os::MapOption::{MapReadable, MapWritable, MapNonStandardFlags};
use stack; use stack;