Skip to content

Commit fa9de10

Browse files
authored
Merge pull request #1340 from eladyn/resolver_v3
chore: use resolver v2 for correct bindgen feature
2 parents beb0a3c + fa21ce1 commit fa9de10

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

.github/workflows/cd.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ jobs:
7070
run: |
7171
sudo apt-get update
7272
# alsa_backend,rodio_backend and base deps
73-
sudo apt-get install -y libasound2-dev libssl-dev libclang-dev clang
73+
sudo apt-get install -y libasound2-dev libssl-dev
74+
# potentially install bindgen dependencies
75+
sudo apt-get install -y libclang-dev cmake
7476
# dbus_mpris
7577
sudo apt-get install -y libdbus-1-dev
7678
# pulseaudio_backend

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Fixed
1010
- revert default features to `alsa_backend` ([#1337])
11+
- do not require `bindgen` dependencies on supported systems ([#1340])
1112

1213
[#1337]: https://github.com/Spotifyd/spotifyd/pull/1337
14+
[#1340]: https://github.com/Spotifyd/spotifyd/pull/1340
1315

1416
## [0.4.0]
1517

Cargo.toml

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ description = "A Spotify daemon"
66
repository = "https://github.com/Spotifyd/spotifyd"
77
license = "GPL-3.0-only"
88
version = "0.4.0"
9+
resolver = "2"
910
rust-version = "1.82"
1011

1112
[dependencies]
@@ -41,17 +42,17 @@ time = { version = "0.3.37", default-features = false, features = ["formatting"]
4142
clap = { version = "4.5.23", features = ["derive"] }
4243
serde_ignored = "0.1.10"
4344

44-
[target."cfg(unix)".dependencies]
45+
[target.'cfg(unix)'.dependencies]
4546
daemonize = "0.5"
4647
syslog = "7"
4748

48-
[target."cfg(target_os = \"macos\")".dependencies]
49+
[target.'cfg(target_os = "macos")'.dependencies]
4950
whoami = "1"
5051

51-
[target."cfg(target_os = \"openbsd\")".dependencies]
52+
[target.'cfg(target_os = "openbsd")'.dependencies]
5253
pledge = "0.4.2"
5354

54-
[target.armv7-unknown-linux-gnueabihf.dependencies]
55+
[target.'cfg(not(any(target_arch = "aarch64", target_arch = "x86_64")))'.dependencies]
5556
aws-lc-rs = { version = "1.12.5", features = ["bindgen"] }
5657

5758
[dev-dependencies]

Cross.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
pre-build = [
33
"dpkg --add-architecture $CROSS_DEB_ARCH",
44
"apt-get update",
5+
# bindgen requirements
6+
"apt-get install -y libclang-dev cmake",
57
# alsa_backend,rodio_backend and base requirements
6-
"apt-get install -y libasound2-dev:$CROSS_DEB_ARCH libssl-dev:$CROSS_DEB_ARCH libclang-10-dev clang-10",
8+
"apt-get install -y libasound2-dev:$CROSS_DEB_ARCH libssl-dev:$CROSS_DEB_ARCH",
79
# dbus_mpris
810
"apt-get install -y libdbus-1-dev:$CROSS_DEB_ARCH",
911
# pulseaudio_backend

0 commit comments

Comments
 (0)