mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-04 10:19:27 +02:00
Move librespot into lib.rs and let main.rs be the test binary
This commit is contained in:
parent
e452abce43
commit
cbd414853f
4 changed files with 56 additions and 25 deletions
34
src/main.rs
34
src/main.rs
|
@ -1,6 +1,4 @@
|
|||
#![crate_name = "librespot"]
|
||||
|
||||
#![feature(plugin,scoped,zero_one,iter_arith,slice_position_elem,slice_bytes,bitset,arc_weak,append,future)]
|
||||
#![feature(plugin,scoped)]
|
||||
#![allow(deprecated)]
|
||||
//#![allow(unused_imports,dead_code)]
|
||||
|
||||
|
@ -18,23 +16,9 @@ extern crate shannon;
|
|||
extern crate rand;
|
||||
extern crate readall;
|
||||
extern crate vorbis;
|
||||
extern crate time;
|
||||
extern crate tempfile;
|
||||
|
||||
extern crate librespot_protocol;
|
||||
|
||||
#[macro_use] mod util;
|
||||
mod audio_decrypt;
|
||||
mod audio_file;
|
||||
mod audio_key;
|
||||
mod connection;
|
||||
mod keys;
|
||||
mod mercury;
|
||||
mod metadata;
|
||||
mod player;
|
||||
mod session;
|
||||
mod stream;
|
||||
mod subsystem;
|
||||
#[macro_use] extern crate librespot;
|
||||
|
||||
use std::clone::Clone;
|
||||
use std::fs::File;
|
||||
|
@ -44,12 +28,14 @@ use protobuf::core::Message;
|
|||
use std::thread;
|
||||
use std::path::PathBuf;
|
||||
|
||||
use metadata::{AlbumRef, ArtistRef, TrackRef};
|
||||
use session::{Config, Session};
|
||||
use util::SpotifyId;
|
||||
use util::version::version_string;
|
||||
use player::{Player, PlayerCommand};
|
||||
use mercury::{MercuryRequest, MercuryMethod};
|
||||
use librespot::util;
|
||||
use librespot::metadata::{AlbumRef, ArtistRef, TrackRef};
|
||||
use librespot::session::{Config, Session};
|
||||
use librespot::util::SpotifyId;
|
||||
use librespot::util::version::version_string;
|
||||
use librespot::player::{Player, PlayerCommand};
|
||||
use librespot::mercury::{MercuryRequest, MercuryMethod};
|
||||
|
||||
use librespot_protocol as protocol;
|
||||
use librespot_protocol::spirc::PlayStatus;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue