mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #1230] [MERGED] Cargo replace hex with data-encoding #1292
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#1292
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/1230
Author: @dsheets
Created: 12/6/2023
Status: ✅ Merged
Merged: 12/15/2023
Merged by: @roderickvd
Base:
dev← Head:cargo-replace-hex-with-data-encoding📝 Commits (3)
ba314b6Replace the apparently unmaintained hex crate with data-encoding29f3345spclient: improve token request logging0fbd19bcore: make it easier to change declared OS📊 Changes
6 files changed (+45 additions, -28 deletions)
View changed files
📝
Cargo.lock(+4 -4)📝
Cargo.toml(+1 -1)📝
core/Cargo.toml(+1 -1)📝
core/src/config.rs(+10 -4)📝
core/src/spclient.rs(+27 -17)📝
src/main.rs(+2 -1)📄 Description
Ok, let's try #1227 again but now with more feeling...
data-encodingwas already a transitive dependency of tungstenite so this changeset strictly reduces the dep set of the project.I've also added some improved logging and made it easier to spoof the OS type by moving the side effect to a single line in
spclientand parameterizing the use sites.I tested the hashcash challenge with
"ios"and found I could stream music (but there were other complaints about 502 responses to some requests and sometimes my decrepit machine was too slow to solve the challenge).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.