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 = "build.rs"
|
||||||
|
|
||||||
[build-dependencies.libbindgen]
|
[build-dependencies]
|
||||||
git = "https://github.com/servo/rust-bindgen"
|
bindgen = "0.23.1"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
extern crate libbindgen;
|
extern crate bindgen;
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::fs::OpenOptions;
|
use std::fs::OpenOptions;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
fn format_write(builder: libbindgen::Builder, output: &str) {
|
fn format_write(builder: bindgen::Builder, output: &str) {
|
||||||
let s = builder.generate()
|
let s = builder.generate()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.to_string()
|
.to_string()
|
||||||
@ -22,8 +22,8 @@ fn format_write(builder: libbindgen::Builder, output: &str) {
|
|||||||
let _ = file.write(s.as_bytes());
|
let _ = file.write(s.as_bytes());
|
||||||
}
|
}
|
||||||
|
|
||||||
fn common_builder() -> libbindgen::Builder {
|
fn common_builder() -> bindgen::Builder {
|
||||||
libbindgen::builder()
|
bindgen::builder()
|
||||||
.raw_line("#![allow(dead_code)]")
|
.raw_line("#![allow(dead_code)]")
|
||||||
.raw_line("#![allow(non_camel_case_types)]")
|
.raw_line("#![allow(non_camel_case_types)]")
|
||||||
.raw_line("#![allow(non_snake_case)]")
|
.raw_line("#![allow(non_snake_case)]")
|
||||||
|
Loading…
Reference in New Issue
Block a user