2021-01-21 20:49:39 +00:00
|
|
|
#![allow(clippy::unused_io_amount)]
|
2017-08-03 18:58:44 +00:00
|
|
|
|
2018-02-11 11:37:08 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
2017-08-03 18:58:44 +00:00
|
|
|
|
2021-02-10 21:40:33 +00:00
|
|
|
use librespot_protocol as protocol;
|
2017-08-03 18:58:44 +00:00
|
|
|
|
2018-02-11 11:37:08 +00:00
|
|
|
#[macro_use]
|
|
|
|
mod component;
|
2021-01-21 20:49:39 +00:00
|
|
|
|
2017-08-03 18:58:44 +00:00
|
|
|
pub mod audio_key;
|
|
|
|
pub mod authentication;
|
|
|
|
pub mod cache;
|
|
|
|
pub mod channel;
|
|
|
|
pub mod config;
|
2021-02-10 21:40:33 +00:00
|
|
|
mod connection;
|
2021-03-18 16:51:50 +00:00
|
|
|
#[doc(hidden)]
|
2017-08-03 18:58:44 +00:00
|
|
|
pub mod diffie_hellman;
|
2018-02-06 18:54:28 +00:00
|
|
|
pub mod keymaster;
|
2017-08-03 18:58:44 +00:00
|
|
|
pub mod mercury;
|
2018-03-23 05:15:15 +00:00
|
|
|
mod proxytunnel;
|
2017-08-03 18:58:44 +00:00
|
|
|
pub mod session;
|
2018-02-12 20:02:27 +00:00
|
|
|
pub mod spotify_id;
|
2021-03-18 16:51:50 +00:00
|
|
|
#[doc(hidden)]
|
2017-08-03 18:58:44 +00:00
|
|
|
pub mod util;
|
|
|
|
pub mod version;
|
2021-03-17 20:24:28 +00:00
|
|
|
|
|
|
|
const AP_FALLBACK: &str = "ap.spotify.com:443";
|
|
|
|
|
|
|
|
#[cfg(feature = "apresolve")]
|
|
|
|
mod apresolve;
|
|
|
|
|
|
|
|
#[cfg(not(feature = "apresolve"))]
|
|
|
|
mod apresolve {
|
|
|
|
pub async fn apresolve(_: Option<&url::Url>, _: Option<u16>) -> String {
|
|
|
|
return super::AP_FALLBACK.into();
|
|
|
|
}
|
|
|
|
}
|