From 8688adbe336662cb60f11725d79b43560749eb21 Mon Sep 17 00:00:00 2001 From: skdhg <46562212+skdhg@users.noreply.github.com> Date: Sun, 6 Aug 2023 20:54:30 +0545 Subject: [PATCH] fix --- Cargo.toml | 1 + build.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index ecfae42..f278c74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,6 +17,7 @@ symphonia = { version = "0.5.3", features = ["all"] } napi-build = "2.0.1" cmake = "0.1" bindgen = "0.59.1" +pkg-config = "0.3.17" [profile.release] lto = true diff --git a/build.rs b/build.rs index 789b7a8..04cc7db 100644 --- a/build.rs +++ b/build.rs @@ -62,6 +62,7 @@ fn link_opus(is_static: bool, opus_build_dir: impl Display) { #[cfg(any(unix, target_env = "gnu"))] fn find_via_pkg_config(is_static: bool) -> bool { + use pkg_config; pkg_config::Config::new() .statik(is_static) .probe("opus")