aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-03-13 10:27:38 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-03-13 10:27:38 +0100
commitfb91645f40b9f89b9bdd3427e04472b501a28c9c (patch)
treead19e8d37ceccc94ce44c91cc0d2cc33b18f288a
parent183d96b44e497fcc441f94d32d5228e4c3d28c4d (diff)
parent896c8b11af59d3ab6039ee8f55c51bf2b627c819 (diff)
downloadglutin-fb91645f40b9f89b9bdd3427e04472b501a28c9c.tar.gz
glutin-fb91645f40b9f89b9bdd3427e04472b501a28c9c.zip
Merge pull request #312 from tomaka/update
Switch to new I/O in build.rs
-rw-r--r--Cargo.toml2
-rw-r--r--build.rs7
2 files changed, 5 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index c228f83..af7e024 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "glutin"
-version = "0.0.7"
+version = "0.0.8"
authors = ["tomaka <pierre.krieger1708@gmail.com>"]
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 f3b1794..867e170 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();