Updated build.rs to tell RustC that dxgi, quartz and x11 are expected configurations.

Added lifetime annotations to various methods in common/aom.rs and common/vpxcodec.rs.
Updated common/vpx.rs to allow unused_imports in the generated bindings.
Updated dxgi/mag.rs to allow non_snake_case identifiers like "dwFilterMode".
This commit is contained in:
Jonathan Gilbert
2025-11-01 10:37:31 -05:00
parent d4410e78e2
commit c769bbc8be
5 changed files with 13 additions and 7 deletions

View File

@@ -227,6 +227,9 @@ fn ffmpeg() {
*/
fn main() {
// in this crate, these are also valid configurations
println!("cargo::rustc-check-cfg=cfg(dxgi,quartz,x11)");
// there is problem with cfg(target_os) in build.rs, so use our workaround
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();