Skip to content

Commit c473c97

Browse files
committed
Set rust_target to 1.68 for bindgen output
1 parent 9148b64 commit c473c97

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use bindgen::RustTarget;
12
use bindgen::{callbacks, Bindings};
23
use camino::Utf8Path as Path;
34
use camino::Utf8PathBuf as PathBuf;
@@ -226,6 +227,7 @@ fn generate_bindings(ffmpeg_include_dir: &Path, headers: &[PathBuf]) -> Bindings
226227
bindgen::builder()
227228
// Force impl Debug if possible(for `AVCodecParameters`)
228229
.impl_debug(true)
230+
.rust_target(RustTarget::Stable_1_68)
229231
.parse_callbacks(Box::new(filter_callback))
230232
// Add clang path, for `#include` header finding in bindgen process.
231233
.clang_arg(format!("-I{}", ffmpeg_include_dir))

0 commit comments

Comments
 (0)