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