mirror of
https://github.com/pisto/oggify
synced 2024-11-24 17:37:29 +00:00
cleanup imports
This commit is contained in:
parent
5724254526
commit
1e60b6e9cc
@ -5,12 +5,11 @@ authors = ["Lorenzo Pistone <blaffablaffa@gmail.com>"]
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures = "0.1.8"
|
tokio-core = "0.1.17"
|
||||||
tokio-core = "0.1.2"
|
|
||||||
librespot-core = { git = "https://github.com/librespot-org/librespot.git" }
|
librespot-core = { git = "https://github.com/librespot-org/librespot.git" }
|
||||||
librespot-metadata = { git = "https://github.com/librespot-org/librespot.git" }
|
librespot-metadata = { git = "https://github.com/librespot-org/librespot.git" }
|
||||||
librespot-audio = { git = "https://github.com/librespot-org/librespot.git" }
|
librespot-audio = { git = "https://github.com/librespot-org/librespot.git" }
|
||||||
regex = "1"
|
regex = "1.1.0"
|
||||||
log = "0.4.0"
|
log = "0.4.6"
|
||||||
env_logger = "0.6.0"
|
env_logger = "0.6.0"
|
||||||
scoped_threadpool = "0.1.*"
|
scoped_threadpool = "0.1.9"
|
||||||
|
24
src/main.rs
24
src/main.rs
@ -1,28 +1,28 @@
|
|||||||
extern crate tokio_core;
|
extern crate env_logger;
|
||||||
extern crate regex;
|
extern crate librespot_audio;
|
||||||
extern crate librespot_core;
|
extern crate librespot_core;
|
||||||
extern crate librespot_metadata;
|
extern crate librespot_metadata;
|
||||||
extern crate librespot_audio;
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
extern crate env_logger;
|
extern crate regex;
|
||||||
extern crate scoped_threadpool;
|
extern crate scoped_threadpool;
|
||||||
|
extern crate tokio_core;
|
||||||
|
|
||||||
use std::time::Duration;
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
use std::io::{self, BufRead, Read, Result};
|
||||||
use std::sync::atomic::{AtomicBool, Ordering};
|
use std::sync::atomic::{AtomicBool, Ordering};
|
||||||
use std::io::{self, Read, BufRead, Result};
|
use std::time::Duration;
|
||||||
use tokio_core::reactor::Core;
|
|
||||||
use regex::Regex;
|
|
||||||
use env_logger::{Builder, Env};
|
|
||||||
use scoped_threadpool::Pool;
|
|
||||||
|
|
||||||
|
use env_logger::{Builder, Env};
|
||||||
|
use librespot_audio::{AudioDecrypt, AudioFile};
|
||||||
use librespot_core::authentication::Credentials;
|
use librespot_core::authentication::Credentials;
|
||||||
use librespot_core::config::SessionConfig;
|
use librespot_core::config::SessionConfig;
|
||||||
use librespot_core::session::Session;
|
use librespot_core::session::Session;
|
||||||
use librespot_core::spotify_id::SpotifyId;
|
use librespot_core::spotify_id::SpotifyId;
|
||||||
use librespot_metadata::{Metadata, FileFormat, Track, Artist};
|
use librespot_metadata::{Artist, FileFormat, Metadata, Track};
|
||||||
use librespot_audio::{AudioDecrypt, AudioFile};
|
use regex::Regex;
|
||||||
|
use scoped_threadpool::Pool;
|
||||||
|
use tokio_core::reactor::Core;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
Builder::from_env(Env::default().default_filter_or("info")).init();
|
Builder::from_env(Env::default().default_filter_or("info")).init();
|
||||||
|
Loading…
Reference in New Issue
Block a user