George Hahn
bd5c284790
Fix build error when hyper's server
feature isn't enabled
...
hyper's `server` feature is not always enabled. The `hyper::Error::is_parse_too_large` function isn't included when `server` isn't enabled.
Fortunately, it doesn't matter to us: `Error:is_parse` matches `parse_too_large` errors, so removing this check does not change behavior whatsoever.
2024-06-07 02:08:54 -06:00
George Hahn
e1113dd5e2
cargo fmt
2024-06-06 21:37:26 -06:00
George Hahn
0a7a874ca0
Update core to hyper 1.x
2024-06-06 03:06:44 -06:00
George Hahn
98a97588d3
Enable deprecation warnings and address
2024-06-06 03:06:44 -06:00
Roderick van Domburg
8f9bec21d7
Merge pull request #1284 from yubiuser/fix/clippy
...
Fix/clippy
2024-05-27 22:33:10 +02:00
Christian König
2a8c4bdc01
Apply reviewer's suggestion
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-05-27 20:11:14 +00:00
Domenico Cerasuolo
ce5e2f2392
Fix SpotifyId base 62 and 16 str decoding
...
A SpotifyId is expected to be a 128 bits integer and can be parsed from a
base 62 or 16 string. However the parsing functions only checked the validity of
the characters of the string, but not its length. This could result in integer
overflows or the parsing of incorrect strings as Spotify ids.
This commit add some checks to the length of the input string passed to the
parse functions, and also checks for integer overflows in case of base62
encoded strings.
2024-05-23 16:21:51 +02:00
Christian König
27d3c9e92f
Fix clippy::to_string_trait_impl
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-05-11 19:53:55 +00:00
Christian König
99878e0f72
Fix derivable_impls
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-05-11 19:13:08 +00:00
Christian König
ca035c9d17
Set MSRV in Cargo.toml files to 1.71
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-05-11 19:03:06 +00:00
Christian König
0884a0d76a
Fix assigning_clones
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-05-11 18:53:46 +00:00
Christian König
63e2490821
Fix redundant import checking on beta toolchain
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-03-31 17:37:07 +00:00
Christian König
2cd2346edb
Fix map_clone and explicit truncate when file is create
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-03-31 14:32:00 +00:00
Roderick van Domburg
9929635b5b
Merge pull request #1267 from acolombier/fix/update-spotify-version
...
fix: change spotify version needed in clientoken to use semantic format
2024-03-31 11:40:02 +02:00
Antoine C
d881f46ce7
fix: change spotify version needed in clientoken to use semantic format
2024-03-19 22:05:29 +00:00
Christian König
979d9d0aa0
Update sysinfo to 0.30.5
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-02-23 23:24:18 +01:00
Christian König
6532264b81
Update env_logger to 11.2
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2024-02-23 23:05:41 +01:00
David Sheets
0fbd19b521
core: make it easier to change declared OS
2023-12-06 20:42:24 +00:00
David Sheets
29f3345030
spclient: improve token request logging
2023-12-06 20:42:24 +00:00
David Sheets
ba314b63e4
Replace the apparently unmaintained hex crate with data-encoding
...
data-encoding was already a transitive dependency via tungstenite
2023-12-06 20:42:24 +00:00
Domenico Cerasuolo
ef1f35ba9d
Fix official uris-ids docs outdated links
2023-12-03 11:56:25 +01:00
Christian König
663fb3b861
Update quick-xml to 0.31
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-14 22:51:26 +01:00
Christian König
eae3a56c30
Fix clippy warning, use unwrap_or_default()
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-11-14 22:47:45 +01:00
Christian König
0954de6d9e
Update quick-xml
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-08-23 21:54:17 +02:00
Christian König
369c84cddb
Update num-derive
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-08-23 21:54:17 +02:00
Christian König
6b0e12fe7b
Update governor
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-08-23 21:54:17 +02:00
Wang Guan
ebf600d96e
do not overwrite unchanged cached Credentials ( #1168 )
2023-07-14 00:02:57 +09:00
Nick Steel
c491f90e09
Parse expiry timestamp from spotifycdn.com CDN URLs ( Fixes #1182 ) ( #1183 )
...
The CDN URLs list now includes spotifycdn.com which has a different
format. It was being erroneously interpreted using the scdn.co format
and trying to parse non-digit characters as a timestamp.
Also ignore expiry timestamps we can't parse for future new URLs.
2023-07-04 10:37:22 +02:00
Christian König
9c30532fd4
Update quick-xml to 0.29
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-06-25 23:32:09 +02:00
eladyn
4d402e690c
add session timeout handling ( #1129 )
2023-06-01 21:39:35 +02:00
yubiuser
c964102a34
Update dependencies sysinfo and RSA ( #1164 )
2023-05-14 21:27:17 +02:00
Roderick van Domburg
e4d4765332
Merge pull request #1156 from yubiuser/update/quick_xml
...
Update quick-xml
2023-04-14 22:21:22 +02:00
Roderick van Domburg
fea1a819fd
Merge pull request #1155 from yubiuser/update/hyper-rustls
...
Update hyper-rustls
2023-04-14 21:43:58 +02:00
Christian König
d8547f176c
Update quick-xml
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-04-14 09:41:58 +02:00
Christian König
d83ed814a3
Update hyper-rustls
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-04-13 21:22:40 +02:00
Christian König
ae8387af1d
Update vergen
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-04-13 21:17:47 +02:00
Roderick van Domburg
2718d22c31
Merge pull request #1152 from yubiuser/update/rsa
...
Update rsa
2023-04-13 20:07:47 +02:00
yubiuser
e8c3ee07ef
Update base64 ( #1148 )
2023-04-13 20:02:33 +02:00
Christian König
453ef48385
Update rsa
...
Signed-off-by: Christian König <ckoenig@posteo.de>
2023-04-12 23:38:05 +02:00
yubiuser
e14dac3ff3
Remove and update dependencies ( #1140 )
2023-04-11 20:33:45 +02:00
George Hahn
e8f93c44fd
Fix NamedSpotifyId::to_uri
2023-01-28 02:56:09 -07:00
Petr Tesarik
c600297f52
Fix newly reported clippy errors
...
- Use variables directly in format strings.
As reported by clippy, variables can be used directly in the
`format!` string.
- Use rewind() instead of seeking to 0.
- Remove superfluous & and ref.
Signed-off-by: Petr Tesarik <petr@tesarici.cz>
2023-01-27 23:15:51 +01:00
Ovenoboyo
7a4807eb8a
Add back pow_response and crypto_response
...
Probably was accidentally removed in
3662302196
Signed-off-by: Ovenoboyo <ovenoboyo@gmail.com>
2023-01-21 21:56:50 +05:30
Lukáš Tyrychtr
3662302196
Update protobuf and related crates to 3.x ( #1092 )
2023-01-17 21:46:14 +01:00
Lukáš Tyrychtr
14ace17967
Update sysinfo, fixing a future incompatibility warning ( #1090 )
2023-01-04 20:39:30 +01:00
Roderick van Domburg
61ae66b998
Merge pull request #1088 from GeorgeHahn/support-named-playlist-ids
...
Parse playlist URIs with named IDs
2023-01-04 20:36:16 +01:00
Guillaume Desmottes
7f2cb684c9
fix clippy warnings
2023-01-03 00:36:35 +01:00
George Hahn
7a259ccc4b
Parse named ID URIs
2023-01-02 16:27:40 -07:00
ealasu
5cfdb8c9dd
Parse local file IDs
2022-12-02 17:24:02 -07:00
Guillaume Desmottes
1a48bc87c8
core: workaround for Session::connect() future being !Send
...
rsa::padding::PaddingScheme is !Send, making it impossible to call
Session::connect() with an executor requiring Send futures, such as
Rocket.
Fix #1065
2022-10-20 17:22:00 +02:00