diff --git a/crates/sherpa-rs-sys/Cargo.toml b/crates/sherpa-rs-sys/Cargo.toml index 9d41f62..033bd9f 100644 --- a/crates/sherpa-rs-sys/Cargo.toml +++ b/crates/sherpa-rs-sys/Cargo.toml @@ -37,6 +37,8 @@ include = [ bindgen = "0.69.4" cmake = "0.1" glob = "0.3.1" +lazy_static = { version = "1.5.0" } + # Download binaries ureq = { version = "2.1", optional = true, default-features = false, features = [ "tls", @@ -49,7 +51,6 @@ sha2 = { version = "0.10", optional = true } dirs = { version = "5.0.1", optional = true } serde_json = { version = "1.0.134", optional = true } serde = { version = "1.0.216", features = ["derive"], optional = true } -lazy_static = { version = "1.5.0", optional = true } [features] @@ -63,7 +64,6 @@ download-binaries = [ "dep:dirs", "dep:serde_json", "dep:serde", - "dep:lazy_static", ] static = [] tts = [] diff --git a/crates/sherpa-rs-sys/build.rs b/crates/sherpa-rs-sys/build.rs index baedb26..8d2d1cf 100644 --- a/crates/sherpa-rs-sys/build.rs +++ b/crates/sherpa-rs-sys/build.rs @@ -519,6 +519,7 @@ fn main() { libs_assets.extend(extract_lib_assets(Path::new(&sherpa_lib_path), &target_os)); } + #[cfg(feature = "download-binaries")] if let Some(dist) = optional_dist { if let Some(assets) = dist.libs { if let Ok(sherpa_lib_path) = env::var("SHERPA_LIB_PATH") {