build: Update to released bindgen
This commit is contained in:
parent
0b3676769f
commit
580823038b
@ -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]
|
||||
|
@ -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)]")
|
||||
|
Loading…
Reference in New Issue
Block a user