mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #649] [MERGED] [Tokio migration] Merge dev and refactor #999
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#999
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/649
Author: @Johannesd3
Created: 2/23/2021
Status: ✅ Merged
Merged: 2/26/2021
Merged by: @ashthespy
Base:
tokio_migration← Head:tokio-migration-refactor-deps📝 Commits (10+)
52438b1Use rodio for jackaudio backendaad4dbaMerge branch 'dev' into rodiojack-backend59f87dcAmend conditional compilation to fail on unsupported systemsf483075Merge pull request #548 from Lcchy/rodiojack-backend34733baBump crypto crates392a12aFix toggling in SpircCommand::PlayPause7662bc5librespot-audio: update librespot-tremor.a173fa7Remove depreciated error description method4e0f5e4Add skip-merge and dry-run options to publish script. Update Cargo.lock.66566e0remove errant live code in dry-run of publish.sh📊 Changes
53 files changed (+1264 additions, -1211 deletions)
View changed files
📝
.github/workflows/test.yml(+1 -0)📝
.gitignore(+4 -1)📝
COMPILING.md(+1 -0)📝
Cargo.lock(+137 -427)📝
Cargo.toml(+18 -16)📝
README.md(+4 -1)📝
audio/Cargo.toml(+8 -8)📝
audio/src/fetch.rs(+65 -80)📝
audio/src/lewton_decoder.rs(+19 -24)📝
audio/src/lib.rs(+83 -21)📝
audio/src/libvorbis_decoder.rs(+17 -18)➕
audio/src/passthrough_decoder.rs(+191 -0)📝
audio/src/range_set.rs(+1 -1)📝
connect/Cargo.toml(+27 -23)📝
connect/src/context.rs(+2 -2)📝
connect/src/discovery.rs(+14 -14)📝
connect/src/lib.rs(+3 -28)📝
connect/src/spirc.rs(+34 -30)📝
core/Cargo.toml(+21 -18)📝
core/build.rs(+3 -6)...and 33 more files
📄 Description
In this PR, I merged dev into tokio_migration (sorry, @ashthespy, in case you already merged dev as well), and then I did some refactoring. This looks like very much, but actually it's only a very shallow refactor, mostly trying to reduce the number of dependencies. (Nevertheless, dev and this branch are further diverging, merging will get harder. I hope there aren't too many other PRs in preparation.)
Here are a few things worth noting:
LinearMapdependency and simply useHashMap. It wasn't clear why it was used at all, but it could be reverted if you know the reason.SessionConfig(it wasn't used, but needed the uuid dependency for librespot-core)error-chain, I replaced it bythiserror.PS: Compare changes except merging
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.