diff --git a/Cargo.toml b/Cargo.toml index c228f83c..af7e024f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "glutin" -version = "0.0.7" +version = "0.0.8" authors = ["tomaka "] description = "Cross-plaform OpenGL context provider. Important: the crates.io only supports Windows and Linux for the moment." keywords = ["windowing", "opengl"] diff --git a/build.rs b/build.rs index f3b17947..867e1702 100644 --- a/build.rs +++ b/build.rs @@ -1,13 +1,14 @@ -#![feature(old_io,old_path,os)] +#![feature(path)] extern crate gl_generator; extern crate khronos_api; use std::env; -use std::old_io::File; +use std::fs::File; +use std::path::PathBuf; fn main() { let target = env::var("TARGET").unwrap(); - let dest = Path::new(env::var("OUT_DIR").unwrap()); + let dest = PathBuf::new(&env::var("OUT_DIR").unwrap()); if target.contains("windows") { let mut file = File::create(&dest.join("wgl_bindings.rs")).unwrap();