Skip to content

Commit 92e4079

Browse files
committed
fixes after merge
1 parent 89391e3 commit 92e4079

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

Cargo.toml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
2-
name = "librespot"
3-
version = "0.6.0-dev"
4-
rust-version = "1.81"
52
authors = ["Librespot Org"]
6-
license = "MIT"
73
description = "An open source client library for Spotify, with support for Spotify Connect"
4+
edition = "2021"
85
keywords = ["spotify"]
9-
repository = "https://github.com/librespot-org/librespot"
6+
license = "MIT"
7+
name = "librespot"
108
readme = "README.md"
11-
edition = "2021"
9+
repository = "https://github.com/librespot-org/librespot"
10+
rust-version = "1.81"
11+
version = "0.6.0-dev"
1212

1313
[workspace]
1414

@@ -17,9 +17,9 @@ name = "librespot"
1717
path = "src/lib.rs"
1818

1919
[[bin]]
20+
doc = false
2021
name = "librespot"
2122
path = "src/main.rs"
22-
doc = false
2323

2424
[dependencies.librespot-audio]
2525
path = "audio"
@@ -34,9 +34,9 @@ path = "core"
3434
version = "0.6.0-dev"
3535

3636
[dependencies.librespot-discovery]
37+
default-features = false
3738
path = "discovery"
3839
version = "0.6.0-dev"
39-
default-features = false
4040

4141
[dependencies.librespot-metadata]
4242
path = "metadata"
@@ -56,51 +56,51 @@ version = "0.6.0-dev"
5656

5757
[dependencies]
5858
data-encoding = "2.5"
59-
env_logger = { version = "0.11.2", default-features = false, features = ["color", "humantime", "auto-color"] }
60-
futures-util = { version = "0.3", default-features = false }
59+
env_logger = {version = "0.11.2", default-features = false, features = ["color", "humantime", "auto-color"]}
60+
futures-util = {version = "0.3", default-features = false}
6161
getopts = "0.2"
6262
log = "0.4"
6363
sha1 = "0.10"
64-
sysinfo = { version = "0.33.0", default-features = false, features = ["system"] }
64+
sysinfo = {version = "0.33.0", default-features = false, features = ["system"]}
6565
thiserror = "2.0"
66-
tokio = { version = "1.40", features = ["rt", "macros", "signal", "sync", "parking_lot", "process"] }
66+
tokio = {version = "1.40", features = ["rt", "macros", "signal", "sync", "parking_lot", "process"]}
6767
url = "2.2"
6868

6969
[features]
7070
alsa-backend = ["librespot-playback/alsa-backend"]
71+
gstreamer-backend = ["librespot-playback/gstreamer-backend"]
72+
jackaudio-backend = ["librespot-playback/jackaudio-backend"]
7173
portaudio-backend = ["librespot-playback/portaudio-backend"]
7274
pulseaudio-backend = ["librespot-playback/pulseaudio-backend"]
73-
jackaudio-backend = ["librespot-playback/jackaudio-backend"]
7475
rodio-backend = ["librespot-playback/rodio-backend"]
7576
rodiojack-backend = ["librespot-playback/rodiojack-backend"]
7677
sdl-backend = ["librespot-playback/sdl-backend"]
77-
gstreamer-backend = ["librespot-playback/gstreamer-backend"]
7878

7979
with-avahi = ["librespot-discovery/with-avahi"]
8080
with-dns-sd = ["librespot-discovery/with-dns-sd"]
8181
with-libmdns = ["librespot-discovery/with-libmdns"]
8282

8383
passthrough-decoder = ["librespot-playback/passthrough-decoder"]
8484

85-
default = ["rodio-backend", "with-libmdns"]
85+
default = ["rodio-backend", "with-libmdns", "passthrough-decoder"]
8686

8787
[package.metadata.deb]
88-
maintainer = "librespot-org"
88+
assets = [
89+
["target/release/librespot", "usr/bin/", "755"],
90+
["contrib/librespot.service", "lib/systemd/system/", "644"],
91+
["contrib/librespot.user.service", "lib/systemd/user/", "644"],
92+
]
8993
copyright = "2018 Paul Liétar"
90-
license-file = ["LICENSE", "4"]
9194
depends = "$auto"
9295
extended-description = """\
9396
librespot is an open source client library for Spotify. It enables applications \
9497
to use Spotify's service, without using the official but closed-source \
9598
libspotify. Additionally, it will provide extra features which are not \
9699
available in the official library."""
97-
section = "sound"
100+
license-file = ["LICENSE", "4"]
101+
maintainer = "librespot-org"
98102
priority = "optional"
99-
assets = [
100-
["target/release/librespot", "usr/bin/", "755"],
101-
["contrib/librespot.service", "lib/systemd/system/", "644"],
102-
["contrib/librespot.user.service", "lib/systemd/user/", "644"]
103-
]
103+
section = "sound"
104104

105105
[workspace.package]
106106
rust-version = "1.81"

src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,10 +665,11 @@ fn get_setup() -> Setup {
665665
"",
666666
"check-auth",
667667
"Check if (oAuth) credentials are valid and exit.",
668+
)
669+
.optflag(
668670
ZEROCONF_BACKEND_SHORT,
669671
ZEROCONF_BACKEND,
670672
"Zeroconf (MDNS/DNS-SD) backend to use. Valid values are 'avahi', 'dns-sd' and 'libmdns', if librespot is compiled with the corresponding feature flags.",
671-
"BACKEND"
672673
);
673674

674675
#[cfg(feature = "passthrough-decoder")]
@@ -1286,6 +1287,7 @@ fn get_setup() -> Setup {
12861287
"With the `--{}` / `-{}` flag set `--{}` / `-{}` has no effect.",
12871288
DISABLE_DISCOVERY, DISABLE_DISCOVERY_SHORT, ZEROCONF_PORT, ZEROCONF_PORT_SHORT
12881289
);
1290+
}
12891291
if let Some(reason) = no_discovery_reason.as_deref() {
12901292
if opt_present(ZEROCONF_PORT) {
12911293
warn!(

0 commit comments

Comments
 (0)