From 580823038bf48d155d9cca60e1262e0d6f511955 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Sat, 3 Jun 2017 13:51:28 +0000 Subject: [PATCH] build: Update to released bindgen --- nvidia-video-codec-sys/Cargo.toml | 4 ++-- nvidia-video-codec-sys/build.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nvidia-video-codec-sys/Cargo.toml b/nvidia-video-codec-sys/Cargo.toml index 5f7d255..0ec23fb 100644 --- a/nvidia-video-codec-sys/Cargo.toml +++ b/nvidia-video-codec-sys/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/rust-av/nvidia-video-codec-rs" build = "build.rs" -[build-dependencies.libbindgen] -git = "https://github.com/servo/rust-bindgen" +[build-dependencies] +bindgen = "0.23.1" [dependencies] diff --git a/nvidia-video-codec-sys/build.rs b/nvidia-video-codec-sys/build.rs index 893a946..7af50a3 100644 --- a/nvidia-video-codec-sys/build.rs +++ b/nvidia-video-codec-sys/build.rs @@ -1,11 +1,11 @@ -extern crate libbindgen; +extern crate bindgen; use std::env; use std::fs::OpenOptions; use std::io::Write; use std::path::PathBuf; -fn format_write(builder: libbindgen::Builder, output: &str) { +fn format_write(builder: bindgen::Builder, output: &str) { let s = builder.generate() .unwrap() .to_string() @@ -22,8 +22,8 @@ fn format_write(builder: libbindgen::Builder, output: &str) { let _ = file.write(s.as_bytes()); } -fn common_builder() -> libbindgen::Builder { - libbindgen::builder() +fn common_builder() -> bindgen::Builder { + bindgen::builder() .raw_line("#![allow(dead_code)]") .raw_line("#![allow(non_camel_case_types)]") .raw_line("#![allow(non_snake_case)]")