Merge pull request #1255 from yubiuser/update/dependencies

Update/dependencies
This commit is contained in:
Roderick van Domburg 2024-03-31 11:29:08 +02:00 committed by GitHub
commit bae18de170
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 654 additions and 469 deletions

View file

@ -109,7 +109,7 @@ jobs:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
toolchain: toolchain:
- "1.70" # MSRV (Minimum supported rust version) - "1.71" # MSRV (Minimum supported rust version)
- stable - stable
experimental: [false] experimental: [false]
# Ignore failures in beta # Ignore failures in beta
@ -163,7 +163,7 @@ jobs:
matrix: matrix:
os: [windows-latest] os: [windows-latest]
toolchain: toolchain:
- "1.70" # MSRV (Minimum supported rust version) - "1.71" # MSRV (Minimum supported rust version)
- stable - stable
steps: steps:
- name: Checkout code - name: Checkout code
@ -206,7 +206,7 @@ jobs:
os: [ubuntu-latest] os: [ubuntu-latest]
target: [armv7-unknown-linux-gnueabihf] target: [armv7-unknown-linux-gnueabihf]
toolchain: toolchain:
- "1.70" # MSRV (Minimum supported rust version) - "1.71" # MSRV (Minimum supported rust version)
- stable - stable
steps: steps:
- name: Checkout code - name: Checkout code

View file

@ -41,7 +41,7 @@ https://github.com/librespot-org/librespot
configurations. configurations.
- [audio] Files are now downloaded over the HTTPS CDN (breaking) - [audio] Files are now downloaded over the HTTPS CDN (breaking)
- [audio] Improve file opening and seeking performance (breaking) - [audio] Improve file opening and seeking performance (breaking)
- [core] MSRV is now 1.70 (breaking) - [core] MSRV is now 1.71 (breaking)
- [connect] `DeviceType` moved out of `connect` into `core` (breaking) - [connect] `DeviceType` moved out of `connect` into `core` (breaking)
- [connect] Update and expose all `spirc` context fields (breaking) - [connect] Update and expose all `spirc` context fields (breaking)
- [connect] Add `Clone, Defaut` traits to `spirc` contexts - [connect] Add `Clone, Defaut` traits to `spirc` contexts

1070
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -51,13 +51,13 @@ version = "0.5.0-dev"
[dependencies] [dependencies]
data-encoding = "2.5" data-encoding = "2.5"
env_logger = { version = "0.10", default-features = false, features = ["color", "humantime", "auto-color"] } env_logger = { version = "0.11.2", default-features = false, features = ["color", "humantime", "auto-color"] }
futures-util = { version = "0.3", default_features = false } futures-util = { version = "0.3", default_features = false }
getopts = "0.2" getopts = "0.2"
log = "0.4" log = "0.4"
rpassword = "7.0" rpassword = "7.0"
sha1 = "0.10" sha1 = "0.10"
sysinfo = { version = "0.29", default-features = false } sysinfo = { version = "0.30.5", default-features = false }
thiserror = "1.0" thiserror = "1.0"
tokio = { version = "1", features = ["rt", "macros", "signal", "sync", "parking_lot", "process"] } tokio = { version = "1", features = ["rt", "macros", "signal", "sync", "parking_lot", "process"] }
url = "2.2" url = "2.2"

View file

@ -47,7 +47,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0" serde_json = "1.0"
sha1 = { version = "0.10", features = ["oid"] } sha1 = { version = "0.10", features = ["oid"] }
shannon = "0.2" shannon = "0.2"
sysinfo = { version = "0.29", default-features = false } sysinfo = { version = "0.30.5", default-features = false }
thiserror = "1.0" thiserror = "1.0"
time = { version = "0.3", features = ["formatting", "parsing"] } time = { version = "0.3", features = ["formatting", "parsing"] }
tokio = { version = "1", features = ["io-util", "macros", "net", "parking_lot", "rt", "sync", "time"] } tokio = { version = "1", features = ["io-util", "macros", "net", "parking_lot", "rt", "sync", "time"] }
@ -63,7 +63,7 @@ rand = "0.8"
vergen = { version = "8", default-features = false, features = ["build", "git", "gitcl"] } vergen = { version = "8", default-features = false, features = ["build", "git", "gitcl"] }
[dev-dependencies] [dev-dependencies]
env_logger = "0.10" env_logger = "0.11.2"
tokio = { version = "1", features = ["macros", "parking_lot"] } tokio = { version = "1", features = ["macros", "parking_lot"] }
[features] [features]

View file

@ -20,7 +20,7 @@ use hyper_rustls::{HttpsConnector, HttpsConnectorBuilder};
use nonzero_ext::nonzero; use nonzero_ext::nonzero;
use once_cell::sync::OnceCell; use once_cell::sync::OnceCell;
use parking_lot::Mutex; use parking_lot::Mutex;
use sysinfo::{System, SystemExt}; use sysinfo::System;
use thiserror::Error; use thiserror::Error;
use url::Url; use url::Url;
@ -105,9 +105,7 @@ pub struct HttpClient {
impl HttpClient { impl HttpClient {
pub fn new(proxy_url: Option<&Url>) -> Self { pub fn new(proxy_url: Option<&Url>) -> Self {
let zero_str = String::from("0"); let zero_str = String::from("0");
let os_version = System::new() let os_version = System::os_version().unwrap_or_else(|| zero_str.clone());
.os_version()
.unwrap_or_else(|| zero_str.clone());
let (spotify_platform, os_version) = match OS { let (spotify_platform, os_version) = match OS {
"android" => ("Android", os_version), "android" => ("Android", os_version),

View file

@ -17,7 +17,7 @@ use hyper::{
use protobuf::{Enum, Message, MessageFull}; use protobuf::{Enum, Message, MessageFull};
use rand::RngCore; use rand::RngCore;
use sha1::{Digest, Sha1}; use sha1::{Digest, Sha1};
use sysinfo::{System, SystemExt}; use sysinfo::System;
use thiserror::Error; use thiserror::Error;
use crate::{ use crate::{
@ -204,9 +204,8 @@ impl SpClient {
.platform_specific_data .platform_specific_data
.mut_or_insert_default(); .mut_or_insert_default();
let sys = System::new(); let os_version = System::os_version().unwrap_or_else(|| String::from("0"));
let os_version = sys.os_version().unwrap_or_else(|| String::from("0")); let kernel_version = System::kernel_version().unwrap_or_else(|| String::from("0"));
let kernel_version = sys.kernel_version().unwrap_or_else(|| String::from("0"));
match os { match os {
"windows" => { "windows" => {

View file

@ -19,7 +19,7 @@ futures-core = "0.3"
futures-util = "0.3" futures-util = "0.3"
hmac = "0.12" hmac = "0.12"
hyper = { version = "0.14", features = ["http1", "server", "tcp"] } hyper = { version = "0.14", features = ["http1", "server", "tcp"] }
libmdns = "0.7" libmdns = "0.8"
log = "0.4" log = "0.4"
rand = "0.8" rand = "0.8"
serde_json = "1.0" serde_json = "1.0"

View file

@ -28,19 +28,19 @@ parking_lot = { version = "0.12", features = ["deadlock_detection"] }
shell-words = "1.1" shell-words = "1.1"
thiserror = "1" thiserror = "1"
tokio = { version = "1", features = ["parking_lot", "rt", "rt-multi-thread", "sync"] } tokio = { version = "1", features = ["parking_lot", "rt", "rt-multi-thread", "sync"] }
zerocopy = { version = "0.7.31", features = ["derive"] } zerocopy = { version = "0.7.32", features = ["derive"] }
# Backends # Backends
alsa = { version = "0.8.1", optional = true } alsa = { version = "0.9.0", optional = true }
portaudio-rs = { version = "0.3", optional = true } portaudio-rs = { version = "0.3", optional = true }
libpulse-binding = { version = "2", optional = true, default-features = false } libpulse-binding = { version = "2", optional = true, default-features = false }
libpulse-simple-binding = { version = "2", optional = true, default-features = false } libpulse-simple-binding = { version = "2", optional = true, default-features = false }
jack = { version = "0.11", optional = true } jack = { version = "0.11", optional = true }
sdl2 = { version = "0.35", optional = true } sdl2 = { version = "0.36", optional = true }
gstreamer = { version = "0.21.2", optional = true } gstreamer = { version = "0.22.1", optional = true }
gstreamer-app = { version = "0.21.2", optional = true } gstreamer-app = { version = "0.22.0", optional = true }
gstreamer-audio = { version = "0.21.2", optional = true } gstreamer-audio = { version = "0.22.0", optional = true }
glib = { version = "0.18.1", optional = true } glib = { version = "0.19.2", optional = true }
# Rodio dependencies # Rodio dependencies
rodio = { version = "0.17.1", optional = true, default-features = false } rodio = { version = "0.17.1", optional = true, default-features = false }

View file

@ -60,13 +60,13 @@ impl Open for GstreamerSink {
let sink = match device { let sink = match device {
None => { None => {
// no need to dither twice; use librespot dithering instead // no need to dither twice; use librespot dithering instead
gst::parse_bin_from_description( gst::parse::bin_from_description(
"audioconvert dithering=none ! audioresample ! autoaudiosink", "audioconvert dithering=none ! audioresample ! autoaudiosink",
true, true,
) )
.expect("Failed to create default GStreamer sink") .expect("Failed to create default GStreamer sink")
} }
Some(ref x) => gst::parse_bin_from_description(x, true) Some(ref x) => gst::parse::bin_from_description(x, true)
.expect("Failed to create custom GStreamer sink"), .expect("Failed to create custom GStreamer sink"),
}; };
pipeline pipeline

View file

@ -12,7 +12,7 @@ use std::{
str::FromStr, str::FromStr,
time::{Duration, Instant}, time::{Duration, Instant},
}; };
use sysinfo::{System, SystemExt}; use sysinfo::System;
use thiserror::Error; use thiserror::Error;
use url::Url; use url::Url;
@ -1693,7 +1693,7 @@ async fn main() {
Err(e) => { Err(e) => {
sys.refresh_processes(); sys.refresh_processes();
if sys.uptime() <= 1 { if System::uptime() <= 1 {
debug!("Retrying to initialise discovery: {e}"); debug!("Retrying to initialise discovery: {e}");
tokio::time::sleep(DISCOVERY_RETRY_TIMEOUT).await; tokio::time::sleep(DISCOVERY_RETRY_TIMEOUT).await;
} else { } else {