Browse Source

Fix cargo fmt CI failure.

master
Nolan Darilek 4 months ago
parent
commit
80d51e1bff
  1. 5
      build.rs

5
build.rs

@ -1,7 +1,10 @@
fn main() {
if std::env::var("TARGET").unwrap().contains("-apple") {
println!("cargo:rustc-link-lib=framework=AVFoundation");
if !std::env::var("CARGO_CFG_TARGET_OS").unwrap().contains("ios") {
if !std::env::var("CARGO_CFG_TARGET_OS")
.unwrap()
.contains("ios")
{
println!("cargo:rustc-link-lib=framework=AppKit");
}
}

Loading…
Cancel
Save