mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Upgrade dependencies
This commit is contained in:
parent
4e3576ba7c
commit
6e280b3c88
13 changed files with 673 additions and 510 deletions
1023
Cargo.lock
generated
1023
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
36
Cargo.toml
36
Cargo.toml
|
@ -33,27 +33,27 @@ path = "playback"
|
||||||
path = "protocol"
|
path = "protocol"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
base64 = "0.5.0"
|
base64 = "0.10"
|
||||||
env_logger = "0.6.1"
|
env_logger = "0.6"
|
||||||
futures = "0.1.8"
|
futures = "0.1"
|
||||||
getopts = "0.2.14"
|
getopts = "0.2"
|
||||||
hyper = "0.11.2"
|
hyper = "0.11"
|
||||||
log = "0.3.5"
|
log = "0.4"
|
||||||
num-bigint = "0.1.35"
|
num-bigint = "0.2"
|
||||||
protobuf = "1.1"
|
protobuf = "2.7"
|
||||||
rand = "0.6"
|
rand = "0.7"
|
||||||
rpassword = "0.3.0"
|
rpassword = "3.0"
|
||||||
tokio-core = "0.1.2"
|
tokio-core = "0.1"
|
||||||
tokio-io = "0.1"
|
tokio-io = "0.1"
|
||||||
tokio-process = "0.2.2"
|
tokio-process = "0.2"
|
||||||
tokio-signal = "0.1.2"
|
tokio-signal = "0.2"
|
||||||
url = "1.7.0"
|
url = "1.7"
|
||||||
sha-1 = "0.8.0"
|
sha-1 = "0.8"
|
||||||
hex = "0.3.2"
|
hex = "0.3"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
rand = "0.6"
|
rand = "0.7"
|
||||||
vergen = "0.1.0"
|
vergen = "3.0"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
alsa-backend = ["librespot-playback/alsa-backend"]
|
alsa-backend = ["librespot-playback/alsa-backend"]
|
||||||
|
|
|
@ -26,7 +26,7 @@ If you wish to learn more about how librespot works overall, the best way is to
|
||||||
If you run into a bug when using librespot, please search the existing issues before opening a new one. Chances are, we've encountered it before, and have provided a resolution. If not, please open a new one, and where possible, include the backtrace librespot generates on crashing, along with anything we can use to reproduce the issue, eg. the Spotify URI of the song that caused the crash.
|
If you run into a bug when using librespot, please search the existing issues before opening a new one. Chances are, we've encountered it before, and have provided a resolution. If not, please open a new one, and where possible, include the backtrace librespot generates on crashing, along with anything we can use to reproduce the issue, eg. the Spotify URI of the song that caused the crash.
|
||||||
|
|
||||||
# Building
|
# Building
|
||||||
Rust 1.30.0 or later is required to build librespot.
|
Rust 1.32.0 or later is required to build librespot.
|
||||||
|
|
||||||
We recently switched to using [Rodio](https://github.com/tomaka/rodio) for audio playback by default, hene for macOS and Windows, you should just be able to clone and build librespot (with the command below). For linux, you will need to run the additional commands below, depending on your distro.
|
We recently switched to using [Rodio](https://github.com/tomaka/rodio) for audio playback by default, hene for macOS and Windows, you should just be able to clone and build librespot (with the command below). For linux, you will need to run the additional commands below, depending on your distro.
|
||||||
|
|
||||||
|
|
|
@ -7,15 +7,15 @@ authors = ["Paul Lietar <paul@lietar.net>"]
|
||||||
path = "../core"
|
path = "../core"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bit-set = "0.4.0"
|
bit-set = "0.5"
|
||||||
byteorder = "1.0"
|
byteorder = "1.3"
|
||||||
futures = "0.1.8"
|
futures = "0.1"
|
||||||
lewton = "0.9.3"
|
lewton = "0.9"
|
||||||
log = "0.3.5"
|
log = "0.4"
|
||||||
num-bigint = "0.1.35"
|
num-bigint = "0.2"
|
||||||
num-traits = "0.1.36"
|
num-traits = "0.2"
|
||||||
tempfile = "2.1"
|
tempfile = "3.1"
|
||||||
aes-ctr = "0.3.0"
|
aes-ctr = "0.3"
|
||||||
|
|
||||||
tremor = { git = "https://github.com/plietar/rust-tremor", optional = true }
|
tremor = { git = "https://github.com/plietar/rust-tremor", optional = true }
|
||||||
vorbis = { version ="0.1.0", optional = true }
|
vorbis = { version ="0.1.0", optional = true }
|
||||||
|
|
|
@ -61,7 +61,7 @@ impl AudioFileOpenStreaming {
|
||||||
});
|
});
|
||||||
|
|
||||||
let mut write_file = NamedTempFile::new().unwrap();
|
let mut write_file = NamedTempFile::new().unwrap();
|
||||||
write_file.set_len(size as u64).unwrap();
|
write_file.as_file().set_len(size as u64).unwrap();
|
||||||
write_file.seek(SeekFrom::Start(0)).unwrap();
|
write_file.seek(SeekFrom::Start(0)).unwrap();
|
||||||
|
|
||||||
let read_file = write_file.reopen().unwrap();
|
let read_file = write_file.reopen().unwrap();
|
||||||
|
|
|
@ -11,22 +11,22 @@ path = "../playback"
|
||||||
path = "../protocol"
|
path = "../protocol"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
base64 = "0.5.0"
|
base64 = "0.10"
|
||||||
futures = "0.1.8"
|
futures = "0.1"
|
||||||
hyper = "0.11.2"
|
hyper = "0.11"
|
||||||
log = "0.3.5"
|
log = "0.4"
|
||||||
num-bigint = "0.1.35"
|
num-bigint = "0.2"
|
||||||
protobuf = "2.0.5"
|
protobuf = "2.7"
|
||||||
rand = "0.6"
|
rand = "0.7"
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
serde_derive = "1.0"
|
serde_derive = "1.0"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
tokio-core = "0.1.2"
|
tokio-core = "0.1"
|
||||||
url = "1.3"
|
url = "1.7"
|
||||||
sha-1 = "0.8.0"
|
sha-1 = "0.8"
|
||||||
hmac = "0.7.0"
|
hmac = "0.7"
|
||||||
aes-ctr = "0.3.0"
|
aes-ctr = "0.3"
|
||||||
block-modes = "0.2.0"
|
block-modes = "0.3"
|
||||||
|
|
||||||
dns-sd = { version = "0.1.3", optional = true }
|
dns-sd = { version = "0.1.3", optional = true }
|
||||||
mdns = { git = "https://github.com/plietar/rust-mdns", optional = true }
|
mdns = { git = "https://github.com/plietar/rust-mdns", optional = true }
|
||||||
|
|
|
@ -8,36 +8,36 @@ build = "build.rs"
|
||||||
path = "../protocol"
|
path = "../protocol"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
base64 = "0.5.0"
|
base64 = "0.10"
|
||||||
byteorder = "1.0"
|
byteorder = "1.3"
|
||||||
bytes = "0.4"
|
bytes = "0.4"
|
||||||
error-chain = { version = "0.11.0", default_features = false }
|
error-chain = { version = "0.12", default_features = false }
|
||||||
extprim = "1.5.1"
|
extprim = "1.7"
|
||||||
futures = "0.1.8"
|
futures = "0.1"
|
||||||
httparse = "1.2.4"
|
httparse = "1.3"
|
||||||
hyper = "0.11.2"
|
hyper = "0.11"
|
||||||
hyper-proxy = { version = "0.4.1", default_features = false }
|
hyper-proxy = { version = "0.4", default_features = false }
|
||||||
lazy_static = "0.2.0"
|
lazy_static = "1.3"
|
||||||
log = "0.3.5"
|
log = "0.4"
|
||||||
num-bigint = "0.1.35"
|
num-bigint = "0.2"
|
||||||
num-integer = "0.1.32"
|
num-integer = "0.1"
|
||||||
num-traits = "0.1.36"
|
num-traits = "0.2"
|
||||||
protobuf = "2.0.5"
|
protobuf = "2.7"
|
||||||
rand = "0.6"
|
rand = "0.7"
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
serde_derive = "1.0"
|
serde_derive = "1.0"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
shannon = "0.2.0"
|
shannon = "0.2.0"
|
||||||
tokio-codec = "0.1.1"
|
tokio-codec = "0.1"
|
||||||
tokio-core = "0.1.2"
|
tokio-core = "0.1"
|
||||||
tokio-io = "0.1"
|
tokio-io = "0.1"
|
||||||
url = "1.7.0"
|
url = "1.7"
|
||||||
uuid = { version = "0.4", features = ["v4"] }
|
uuid = { version = "0.7", features = ["v4"] }
|
||||||
sha-1 = "0.8.0"
|
sha-1 = "0.8"
|
||||||
hmac = "0.7.0"
|
hmac = "0.7"
|
||||||
pbkdf2 = "0.3.0"
|
pbkdf2 = "0.3"
|
||||||
aes = "0.3.0"
|
aes = "0.3"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
rand = "0.6"
|
rand = "0.7"
|
||||||
vergen = "0.1.0"
|
vergen = "0.1.0"
|
||||||
|
|
|
@ -15,7 +15,7 @@ pub struct SessionConfig {
|
||||||
|
|
||||||
impl Default for SessionConfig {
|
impl Default for SessionConfig {
|
||||||
fn default() -> SessionConfig {
|
fn default() -> SessionConfig {
|
||||||
let device_id = Uuid::new_v4().hyphenated().to_string();
|
let device_id = Uuid::new_v4().to_hyphenated().to_string();
|
||||||
SessionConfig {
|
SessionConfig {
|
||||||
user_agent: version::version_string(),
|
user_agent: version::version_string(),
|
||||||
device_id: device_id,
|
device_id: device_id,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::sync::{Arc, RwLock, Weak};
|
use std::sync::{Arc, RwLock, Weak};
|
||||||
use std::sync::atomic::{ATOMIC_USIZE_INIT, AtomicUsize, Ordering};
|
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||||
use std::time::{SystemTime, UNIX_EPOCH};
|
use std::time::{SystemTime, UNIX_EPOCH};
|
||||||
|
|
||||||
use byteorder::{BigEndian, ByteOrder};
|
use byteorder::{BigEndian, ByteOrder};
|
||||||
|
@ -42,7 +42,7 @@ struct SessionInternal {
|
||||||
session_id: usize,
|
session_id: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
static SESSION_COUNTER: AtomicUsize = ATOMIC_USIZE_INIT;
|
static SESSION_COUNTER: AtomicUsize = AtomicUsize::new(0);
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct Session(Arc<SessionInternal>);
|
pub struct Session(Arc<SessionInternal>);
|
||||||
|
|
|
@ -4,10 +4,10 @@ version = "0.1.0"
|
||||||
authors = ["Paul Lietar <paul@lietar.net>"]
|
authors = ["Paul Lietar <paul@lietar.net>"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
byteorder = "1.0"
|
byteorder = "1.3"
|
||||||
futures = "0.1.8"
|
futures = "0.1"
|
||||||
linear-map = "1.0"
|
linear-map = "1.2"
|
||||||
protobuf = "2.0.5"
|
protobuf = "2.7"
|
||||||
|
|
||||||
[dependencies.librespot-core]
|
[dependencies.librespot-core]
|
||||||
path = "../core"
|
path = "../core"
|
||||||
|
|
|
@ -11,9 +11,9 @@ path = "../core"
|
||||||
path = "../metadata"
|
path = "../metadata"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures = "0.1.8"
|
futures = "0.1"
|
||||||
log = "0.3.5"
|
log = "0.4"
|
||||||
byteorder = "1.2.1"
|
byteorder = "1.3"
|
||||||
|
|
||||||
alsa = { version = "0.2.1", optional = true }
|
alsa = { version = "0.2.1", optional = true }
|
||||||
portaudio-rs = { version = "0.3.0", optional = true }
|
portaudio-rs = { version = "0.3.0", optional = true }
|
||||||
|
@ -21,7 +21,7 @@ libpulse-sys = { version = "0.0.0", optional = true }
|
||||||
jack = { version = "0.5.3", optional = true }
|
jack = { version = "0.5.3", optional = true }
|
||||||
libc = { version = "0.2", optional = true }
|
libc = { version = "0.2", optional = true }
|
||||||
rodio = { git = "https://github.com/tomaka/rodio", optional = true, default-features = false }
|
rodio = { git = "https://github.com/tomaka/rodio", optional = true, default-features = false }
|
||||||
cpal = { version = "*", optional = true }
|
cpal = { version = "0.8", optional = true }
|
||||||
sdl2 = { version = "0.32", optional = true }
|
sdl2 = { version = "0.32", optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|
|
@ -5,7 +5,7 @@ authors = ["Paul Liétar <paul@lietar.net>"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
protobuf = "2.0.5"
|
protobuf = "2.7"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
protobuf-codegen-pure = "2.0.5"
|
protobuf-codegen-pure = "2.7"
|
||||||
|
|
|
@ -397,7 +397,7 @@ impl Main {
|
||||||
spirc: None,
|
spirc: None,
|
||||||
spirc_task: None,
|
spirc_task: None,
|
||||||
shutdown: false,
|
shutdown: false,
|
||||||
signal: Box::new(tokio_signal::ctrl_c(&handle).flatten_stream()),
|
signal: Box::new(tokio_signal::ctrl_c().flatten_stream()),
|
||||||
|
|
||||||
player_event_channel: None,
|
player_event_channel: None,
|
||||||
player_event_program: setup.player_event_program,
|
player_event_program: setup.player_event_program,
|
||||||
|
|
Loading…
Reference in a new issue