Skip to content

Commit

Permalink
More docs.rs fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kinetiknz committed Feb 11, 2025
1 parent faab2bb commit b14de5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cubeb-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ fn main() {

// Do not build the rust backends for tests: doing so causes duplicate
// symbol definitions.
#[cfg(feature = "unittest-build")]
#[cfg(any(feature = "unittest-build", docsrs))]
let build_rust_libs = "OFF";
#[cfg(not(feature = "unittest-build"))]
#[cfg(not(any(feature = "unittest-build", docsrs)))]
let build_rust_libs = "ON";
let dst = cfg
.define("BUILD_SHARED_LIBS", "OFF")
Expand Down Expand Up @@ -129,7 +129,7 @@ fn main() {

// Do not link the rust backends for tests: doing so causes duplicate
// symbol definitions.
#[cfg(not(feature = "unittest-build"))]
#[cfg(not(any(feature = "unittest-build", docsrs)))]
{
println!("cargo:rustc-link-lib=static=cubeb_coreaudio");
let mut search_path = std::env::current_dir().unwrap();
Expand Down Expand Up @@ -159,7 +159,7 @@ fn main() {
if pkg_config::find_library("libpulse").is_ok() {
// Do not link the rust backends for tests: doing so causes duplicate
// symbol definitions.
#[cfg(not(feature = "unittest-build"))]
#[cfg(not(any(feature = "unittest-build", docsrs)))]
{
println!("cargo:rustc-link-lib=static=cubeb_pulse");
let mut search_path = std::env::current_dir().unwrap();
Expand Down

0 comments on commit b14de5b

Please sign in to comment.