Skip to content

Commit

Permalink
fix: remove redundant lazy_static dependency and adjust feature confi…
Browse files Browse the repository at this point in the history
…guration
  • Loading branch information
thewh1teagle committed Dec 25, 2024
1 parent e76a411 commit b8c2f7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sherpa-rs-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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]
Expand All @@ -63,7 +64,6 @@ download-binaries = [
"dep:dirs",
"dep:serde_json",
"dep:serde",
"dep:lazy_static",
]
static = []
tts = []
Expand Down
1 change: 1 addition & 0 deletions crates/sherpa-rs-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit b8c2f7c

Please sign in to comment.