Skip to content

Commit

Permalink
Set rust_target to 1.68 for bindgen output
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm0 committed Aug 25, 2024
1 parent 9148b64 commit c473c97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use bindgen::RustTarget;
use bindgen::{callbacks, Bindings};
use camino::Utf8Path as Path;
use camino::Utf8PathBuf as PathBuf;
Expand Down Expand Up @@ -226,6 +227,7 @@ fn generate_bindings(ffmpeg_include_dir: &Path, headers: &[PathBuf]) -> Bindings
bindgen::builder()
// Force impl Debug if possible(for `AVCodecParameters`)
.impl_debug(true)
.rust_target(RustTarget::Stable_1_68)
.parse_callbacks(Box::new(filter_callback))
// Add clang path, for `#include` header finding in bindgen process.
.clang_arg(format!("-I{}", ffmpeg_include_dir))
Expand Down

0 comments on commit c473c97

Please sign in to comment.