mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #668] [CLOSED] Eliminate most uses of util module #1009
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#1009
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/668
Author: @Johannesd3
Created: 3/10/2021
Status: ❌ Closed
Base:
tokio_migration← Head:diffie-hellman📝 Commits (4)
9964b46Reuse librespot-core's Diffie Hellman in discoveryecde3c7Bump num-bigint dependencyae654ceAlmost eliminate util modulec9f5ce1Bump MSRV to 1.45📊 Changes
11 files changed (+57 additions, -89 deletions)
View changed files
📝
.github/workflows/test.yml(+1 -1)📝
Cargo.lock(+5 -3)📝
connect/Cargo.toml(+1 -1)📝
connect/src/discovery.rs(+9 -18)📝
connect/src/spirc.rs(+5 -2)📝
core/Cargo.toml(+2 -1)📝
core/src/connection/handshake.rs(+5 -3)📝
core/src/diffie_hellman.rs(+26 -12)📝
core/src/lib.rs(+2 -0)📝
core/src/mercury/mod.rs(+1 -2)📝
core/src/util.rs(+0 -46)📄 Description
Seems as if Diffie Hellman works exactly the same way in core and discovery, but except of the constants the code wasn't reused until now.
Sequel: Without the use of
powmin discovery, it became unnecessary that this function is exposed in the util module. Looking through the other uses ofutil, I realized that most of them are easy to replace. The last remaining item inutilisSeqGeneratoras it is used once inspirc.rs.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.