mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #1227] [CLOSED] Cargo replace hex with faster-hex #1289
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#1289
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/1227
Author: @dsheets
Created: 12/1/2023
Status: ❌ Closed
Base:
dev← Head:cargo-replace-hex-with-faster-hex📝 Commits (2)
da3b353Replace the apparently unmaintained hex crate with faster-hex5029c4espclient: improve token request logging📊 Changes
5 files changed (+38 additions, -18 deletions)
View changed files
📝
Cargo.lock(+11 -2)📝
Cargo.toml(+1 -1)📝
core/Cargo.toml(+1 -1)📝
core/src/spclient.rs(+23 -13)📝
src/main.rs(+2 -1)📄 Description
Hi, long time listener, first time caller...
I'm doing some work on the
spotify_idmodule for another project including replacing the bespoke hex encode/decode there with a library call and I started usinghexbecause it is a dependency of bothlibrespotandlibrespot-corealready... buthexdoesn't appear to be maintained and it lacks really obvious stuff like symmetry between its traits and its functions and major performance issues (that we admittedly don't really care about here, yet).Anyway, looking around
crates.io, I came acrossfaster-hexwhich is still far from perfect but the maintainers seem active and likely responsive. So I patchedlibrespotandlibrespot-coreto use it instead.Unfortunately, I couldn't work out how to test the hashcash challenge. I tried changing my
OSbut that either crashes (for"android") or fails with 400 (for"ios"). I included the improved logging I added to try to understand these issues.If you could review the changes and let me know how to test the hashcash challenge (or test it yourself or confirm that LGTY), I would be grateful. I will be sending along my
spotify_idrefactoring changeset soon.Thanks!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.