major dependency cleanup

- depend on specific librespot crates to remove clutter
- update versions

this should also help building on openbsd, as the unused librespot-connect
depended on the nix crate, which does not build on openbsd.
This commit is contained in:
Henrik Friedrichsen
2019-11-24 16:38:15 +01:00
parent 177c4893e0
commit e697b97d8c
5 changed files with 255 additions and 400 deletions

View File

@@ -5,8 +5,8 @@ use cursive::view::Identifiable;
use cursive::views::*;
use cursive::{CbSink, Cursive};
use librespot::core::authentication::Credentials as RespotCredentials;
use librespot::protocol::authentication::AuthenticationType;
use librespot_core::authentication::Credentials as RespotCredentials;
use librespot_protocol::authentication::AuthenticationType;
pub fn create_credentials(path: &Path) -> Result<RespotCredentials, String> {
let mut login_cursive = Cursive::default();

View File

@@ -9,7 +9,9 @@ extern crate failure;
extern crate futures;
#[macro_use]
extern crate lazy_static;
extern crate librespot;
extern crate librespot_core;
extern crate librespot_playback;
extern crate librespot_protocol;
extern crate rspotify;
extern crate tokio;
extern crate tokio_core;
@@ -43,7 +45,7 @@ use clap::{App, Arg};
use cursive::traits::Identifiable;
use cursive::Cursive;
use librespot::core::authentication::Credentials;
use librespot_core::authentication::Credentials;
mod album;
mod artist;

View File

@@ -1,16 +1,16 @@
use config::Config;
use librespot::core::authentication::Credentials;
use librespot::core::cache::Cache;
use librespot::core::config::SessionConfig;
use librespot::core::keymaster::Token;
use librespot::core::mercury::MercuryError;
use librespot::core::session::Session;
use librespot::core::spotify_id::SpotifyId;
use librespot::playback::config::PlayerConfig;
use librespot_core::authentication::Credentials;
use librespot_core::cache::Cache;
use librespot_core::config::SessionConfig;
use librespot_core::keymaster::Token;
use librespot_core::mercury::MercuryError;
use librespot_core::session::Session;
use librespot_core::spotify_id::SpotifyId;
use librespot_playback::config::PlayerConfig;
use librespot::playback::audio_backend;
use librespot::playback::config::Bitrate;
use librespot::playback::player::Player;
use librespot_playback::audio_backend;
use librespot_playback::config::Bitrate;
use librespot_playback::player::Player;
use rspotify::spotify::client::ApiError;
use rspotify::spotify::client::Spotify as SpotifyAPI;