mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #1543] [MERGED] refactor: remove parking_lot dependency and refine feature selections #1433
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#1433
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?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/1543
Author: @roderickvd
Created: 8/20/2025
Status: ✅ Merged
Merged: 9/21/2025
Merged by: @roderickvd
Base:
dev← Head:refactor/no-default-features📝 Commits (5)
6af7fe0refactor: refine dependency features and versions in Cargo.toml files6f473ebchore: update cratesfba6495refactor: switch from parking_lot to std sync primitives791b18crefactor: remove dashmap dependency and use DefaultKeyedStateStore6f73a55refactor: revert to while condition in download loop📊 Changes
16 files changed (+637 additions, -340 deletions)
View changed files
📝
Cargo.lock(+290 -224)📝
Cargo.toml(+0 -1)📝
audio/Cargo.toml(+2 -3)📝
audio/src/fetch/mod.rs(+30 -12)📝
audio/src/fetch/receive.rs(+29 -6)📝
connect/Cargo.toml(+4 -4)📝
core/Cargo.toml(+7 -13)📝
core/src/cache.rs(+16 -6)📝
core/src/component.rs(+6 -3)📝
core/src/dealer/mod.rs(+46 -8)📝
core/src/http_client.rs(+3 -6)📝
core/src/session.rs(+168 -29)📝
discovery/Cargo.toml(+4 -4)📝
playback/Cargo.toml(+4 -10)📝
playback/src/audio_backend/gstreamer.rs(+22 -7)📝
playback/src/player.rs(+6 -4)📄 Description
Cargo.tomlfeature selectionsparking_lotdependency across the entire workspace in favor of standard library synchronization primitivesTrimming feature selections
I went through the dependency tree to apply
default-features = falseand trimming feature selections where possible.Removing
parking_lotSome years ago I moved from
std::sync::Mutexand friends toparking_lotwhen I was purging all use ofunwrapandexpectfrom the code base. Since then two things happened:stdsynchronization primitives got a lot better;expectagain here.Fixes #1382
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.