mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1569] Unable to compile with libmdns-0.9.2: arguments to this method are incorrect #709
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#709
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @flocke on GitHub (Sep 5, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1569
Description
Build fails recently in Docker container
rust:slim-bookworm.I am not sure what exactly changed recently but I have been using the same Docker container to build librespot for a while now and it recently stopped working.
I don't know enough about Rust to debug myself, but I can provide any addition information that is required.
Version
I tried the latest
0.7.1as well as0.7.0(which worked previously).How to reproduce
Use the following
Dockerfileto reproduce:Log
Host (what you are running
librespoton):@kingosticks commented on GitHub (Sep 5, 2025):
Seems to be due to the new libmdns release. I've not looked properly but did it bump the MSRV in a patch release?! That's not ideal.
@flocke commented on GitHub (Sep 5, 2025):
I will try to downgrade libmdns tomorrow to check.
Breaking changes in a patch release are always fun...
@kingosticks commented on GitHub (Sep 5, 2025):
I can reproduce this by removing our Cargo.lock and re-building. Downgrading libmdns fixes it.
We either pin libmdns to v0.9.1 or we fix the compilation issue. The cargo suggestions doesn't work for v0.9.1 so perhaps pinning is easiest.
@roderickvd commented on GitHub (Sep 6, 2025):
Indeed… the new libmdns is nice to have though because it decreases the size of our dependency tree and binary.
Let’s fix it if we can. Doesn’t just
&name(withoutinto_owned) cut it?@kingosticks commented on GitHub (Sep 6, 2025):
That's what I tried, and with 0.9.1 it complained about both.
@urknall commented on GitHub (Sep 6, 2025):
how about:
@urknall commented on GitHub (Sep 6, 2025):
&*name,
should also work
@urknall commented on GitHub (Sep 6, 2025):
weird, i just tried with:
all of them worked on my system
EDIT: sorry, i just saw you talked about 0.9.1, i tested with 0.9.2
@photovoltex commented on GitHub (Sep 6, 2025):
0.9.1wantsStringand0.9.2wants&str. For the first.into()should work, butInto<Stirng>forCowisn't implemented as it seems.@kingosticks commented on GitHub (Sep 6, 2025):
Slight tangent but why doesn't the Cargo lock file get used when people do
cargo install librespot?@willstott101 commented on GitHub (Sep 6, 2025):
0.9.2 is yanked. Can someone confirm cargo automatically reverts to 0.9.1 in their workspace?
@flocke commented on GitHub (Sep 13, 2025):
That is something I was asking myself as well. You need to manually add
--lockedto the command in order to use the lock file. I did this now for myDockerfilejust to make sure I always use the tested combination of packages. But in my opinion that should be the default behavior...ready!macro to reduce boilerplate" #1033