build: Update to released bindgen

This commit is contained in:
Luca Barbato 2017-06-03 13:51:28 +00:00
parent 0b3676769f
commit 580823038b
2 changed files with 6 additions and 6 deletions

View File

@ -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]

View File

@ -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)]")