From 6749b543fa1d425c035e1923d9aba1c75df1cbac Mon Sep 17 00:00:00 2001 From: Henrik Friedrichsen Date: Mon, 31 May 2021 15:43:50 +0200 Subject: [PATCH] Enable `apresolve` feature in librespot-core Fixes #535 --- Cargo.lock | 42 ++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 55fb37c..23cdbf4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1161,6 +1161,31 @@ version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" +[[package]] +name = "headers" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0b7591fb62902706ae8e7aaff416b1b0fa2c0fd0878b46dc13baa3712d8a855" +dependencies = [ + "base64 0.13.0", + "bitflags 1.2.1", + "bytes 1.0.1", + "headers-core", + "http", + "mime", + "sha-1", + "time", +] + +[[package]] +name = "headers-core" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7f66481bfee273957b1f20485a4ff3362987f85b2c236580d81b4eb7a326429" +dependencies = [ + "http", +] + [[package]] name = "heck" version = "0.3.2" @@ -1296,6 +1321,21 @@ dependencies = [ "want", ] +[[package]] +name = "hyper-proxy" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca815a891b24fdfb243fa3239c86154392b0953ee584aa1a2a1f66d20cbe75cc" +dependencies = [ + "bytes 1.0.1", + "futures 0.3.15", + "headers", + "http", + "hyper 0.14.8", + "tokio 1.6.1", + "tower-service", +] + [[package]] name = "hyper-tls" version = "0.4.3" @@ -1588,6 +1628,8 @@ dependencies = [ "hmac", "http", "httparse", + "hyper 0.14.8", + "hyper-proxy", "librespot-protocol", "log", "num-bigint", diff --git a/Cargo.toml b/Cargo.toml index 67b980a..46302be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ fern = "0.6" futures = { version = "0.3", features = ["compat"] } futures_01 = { version = "0.1", package = "futures" } lazy_static = "1.3.0" -librespot-core = "0.2.0" +librespot-core = { version = "0.2.0", features = ["apresolve"] } librespot-playback = "0.2.0" librespot-protocol = "0.2.0" log = "0.4.13"