Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tokio migration] Merge dev and refactor #649

Merged

Conversation

Johannesd3
Copy link
Contributor

@Johannesd3 Johannesd3 commented Feb 23, 2021

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:

PS: Compare changes except merging

Lcchy and others added 30 commits February 9, 2021 17:45
Fix play/pause toggling in handle_play_pause() to correctly call handled_play()/handle_pause() based on the state.
This picks up a fix for librespot-tremor when building with Rust 1.48.
…-pause

Fix state toggling in SpircCommand::PlayPause
Allow pipeline writer to spit out Ogg directly, including when seeking
…kend"

This reverts commit f483075, reversing
changes made to ea8ece3.
Probably more simple than the previous approach which
doubles the code: Instead of implementing the `Open` trait,
we simply use custom SinkBuilder, one for the default host,
and one for the "jack" host.
* Remove default impl for `SessionConfig`
* Move util mod to single file
* Restore privacy of mods
* Move `fn get_credentials` to application
* Remove `extern crate` statements
* Use sub-crates of future
* Remove unnecessary pin-project
* Removed unused crates and features
* Replace futures channels by tokio channels
* Use serde's "derive" feature flag instead of serde_derive
* Replaced LinearMap by HashMap
* Removed unnecessary dependencies
* Removed "extern crate"s
* Remove unused deps
* Use futures-util instead of futures
* Replace futures channels by tokio channels
* Remove unnecessary pin_project
* Reordered "use" statements
* Use futures-util instead of futures
* Use tokio channels instead of futures channels
* Removed "extern crate"s
@ashthespy
Copy link
Member

@Johannesd3 I am going to merge things as in into this branch -- I am a bit preoccupied with submissions, will tests things ASAP..

@ashthespy ashthespy merged commit 9d77fef into librespot-org:tokio_migration Feb 26, 2021
@Johannesd3 Johannesd3 deleted the tokio-migration-refactor-deps branch February 26, 2021 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants