mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #487] [CLOSED] Migrate to futures 0.3/Tokio 0.2 #948
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#948
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/487
Author: @ashthespy
Created: 6/7/2020
Status: ❌ Closed
Base:
tokio_migration← Head:tokio_03📝 Commits (10+)
fcbd600[Core] Bump hyper to ~0.1219d9b02[Connect] Migrate to hyper ~v126dd9e0eClean up hyper from binaryd52c58bWIP tokio-core -> tokio migration5d48c88Migrate totokio0.1be4ae92[Connect] Migrate totokio0.17f6e666WIP Futures80c3e93[Core/connection] Refactor to async/awaiteee8ada[AudioKeyManager] Convert to async6c59bb7Fix tokio dependency in main📊 Changes
34 files changed (+2025 additions, -1816 deletions)
View changed files
📝
Cargo.lock(+1399 -1200)📝
Cargo.toml(+2 -2)📝
audio/Cargo.toml(+2 -1)📝
audio/src/fetch.rs(+65 -69)📝
connect/Cargo.toml(+7 -3)📝
connect/src/discovery.rs(+39 -31)📝
connect/src/lib.rs(+1 -1)📝
core/Cargo.toml(+9 -7)📝
core/src/apresolve.rs(+33 -51)📝
core/src/audio_key.rs(+15 -23)📝
core/src/channel.rs(+32 -31)📝
core/src/connection/codec.rs(+5 -5)📝
core/src/connection/handshake.rs(+75 -149)📝
core/src/connection/mod.rs(+65 -77)📝
core/src/keymaster.rs(+7 -5)📝
core/src/lib.rs(+7 -7)📝
core/src/mercury/mod.rs(+15 -13)📝
core/src/mercury/sender.rs(+13 -11)📝
core/src/proxytunnel.rs(+38 -24)📝
core/src/session.rs(+109 -68)...and 14 more files
📄 Description
Fixes #178
Following up from #424, I thought it would be better if we create a new branch and we can all chip at it? @marcelbuesing @leshow What do you guys think?
What I've managed to do so far is to get Core/connection up and running (without the proxy tunnel). I also wrote some rudimentary tests to confirm it actually works - I had to cheat and remove all the fluff that didn't compile though..
Currently there is a lot of
expected enumstd::task::Poll, found enumstd::result::Result` that needs to be fixed. But I do see the simplicity of async/await, so we can take a call and refactor to async/await where possible, but it would good to have some simple tests as well..🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.