mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #665] [MERGED] Tokio migration #1006
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#1006
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/665
Author: @Johannesd3
Created: 3/8/2021
Status: ✅ Merged
Merged: 4/13/2021
Merged by: @sashahilton00
Base:
dev← Head:tokio_migration📝 Commits (10+)
6f5607d[Core] Bump hyper to ~0.12931c820[Connect] Migrate to hyper ~v12962d7afClean up hyper from binary9bbf8c3WIP tokio-core -> tokio migration53b4ab0Migrate totokio0.1c69ccf7[Connect] Migrate totokio0.147a1575WIP Futures94fc0a1[Core/connection] Refactor to async/awaitc273d51[AudioKeyManager] Convert to async20dd94fFix tokio dependency in main📊 Changes
67 files changed (+3378 additions, -4421 deletions)
View changed files
📝
.github/workflows/test.yml(+105 -33)📝
COMPILING.md(+1 -1)📝
Cargo.lock(+415 -978)📝
Cargo.toml(+14 -14)📝
audio/Cargo.toml(+6 -7)📝
audio/src/convert.rs(+14 -17)➖
audio/src/fetch.rs(+0 -1099)➕
audio/src/fetch/mod.rs(+509 -0)➕
audio/src/fetch/receive.rs(+455 -0)📝
audio/src/lewton_decoder.rs(+7 -9)📝
audio/src/lib.rs(+19 -27)📝
audio/src/libvorbis_decoder.rs(+1 -3)📝
audio/src/passthrough_decoder.rs(+7 -7)📝
audio/src/range_set.rs(+19 -26)📝
connect/Cargo.toml(+23 -20)📝
connect/src/context.rs(+2 -2)📝
connect/src/discovery.rs(+78 -108)📝
connect/src/lib.rs(+3 -28)📝
connect/src/spirc.rs(+173 -204)📝
core/Cargo.toml(+27 -18)...and 47 more files
📄 Description
We're very close to finishing the migration to Tokio 1.0, and I think the result is worth seeing. Not only tokio but almost every other dependency was bumped to its latest version. In many places the code became simpler by using the async/await notation, and there were some general efforts of refactoring the code on this occasion.
Issues:
Pull requests:
Things that were removed and might or might not be added back:
Defaultimpl ofSessionConfig(was added again in #663)LinearMapdependency inlibrespot-metadata(replaced byHashMapina6ed685)fn get_credentials(removed in9253be7, see #596)and
Think about feature flags (see #648, #652)(restored old behaviour and postponed)Fixes #677, fixes #596, fixes #368
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.