mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Turn child crates into rust 2018 edition
This commit is contained in:
parent
38d82f2dc2
commit
c9147d31ab
8 changed files with 13 additions and 7 deletions
|
@ -4,6 +4,7 @@ version = "0.1.0"
|
|||
authors = ["Paul Lietar <paul@lietar.net>"]
|
||||
description="The audio fetching and processing logic for librespot"
|
||||
license="MIT"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies.librespot-core]
|
||||
path = "../core"
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
use crate::range_set::{Range, RangeSet};
|
||||
use byteorder::{BigEndian, ByteOrder, WriteBytesExt};
|
||||
use bytes::Bytes;
|
||||
use futures::sync::{mpsc, oneshot};
|
||||
use futures::Stream;
|
||||
use futures::{Async, Future, Poll};
|
||||
use range_set::{Range, RangeSet};
|
||||
use std::cmp::{max, min};
|
||||
use std::fs;
|
||||
use std::io::{self, Read, Seek, SeekFrom, Write};
|
||||
|
|
|
@ -4,6 +4,7 @@ version = "0.1.0"
|
|||
authors = ["Paul Lietar <paul@lietar.net>"]
|
||||
description="The discovery and Spotify Connect logic for librespot"
|
||||
license="MIT"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies.librespot-core]
|
||||
path = "../core"
|
||||
|
|
|
@ -5,6 +5,7 @@ authors = ["Paul Lietar <paul@lietar.net>"]
|
|||
build = "build.rs"
|
||||
description="The core functionality provided by librespot"
|
||||
license="MIT"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies.librespot-protocol]
|
||||
path = "../protocol"
|
||||
|
|
|
@ -4,6 +4,7 @@ version = "0.1.0"
|
|||
authors = ["Paul Lietar <paul@lietar.net>"]
|
||||
description="The metadata logic for librespot"
|
||||
license="MIT"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
byteorder = "1.3"
|
||||
|
|
|
@ -4,6 +4,7 @@ version = "0.1.0"
|
|||
authors = ["Sasha Hilton <sashahilton00@gmail.com>"]
|
||||
description="The audio playback logic for librespot"
|
||||
license="MIT"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies.librespot-audio]
|
||||
path = "../audio"
|
||||
|
|
|
@ -15,15 +15,15 @@ use crate::config::{Bitrate, PlayerConfig};
|
|||
use librespot_core::session::Session;
|
||||
use librespot_core::spotify_id::SpotifyId;
|
||||
|
||||
use audio::{AudioDecrypt, AudioFile, StreamLoaderController};
|
||||
use audio::{VorbisDecoder, VorbisPacket};
|
||||
use audio::{
|
||||
use crate::audio::{AudioDecrypt, AudioFile, StreamLoaderController};
|
||||
use crate::audio::{VorbisDecoder, VorbisPacket};
|
||||
use crate::audio::{
|
||||
READ_AHEAD_BEFORE_PLAYBACK_ROUNDTRIPS, READ_AHEAD_BEFORE_PLAYBACK_SECONDS,
|
||||
READ_AHEAD_DURING_PLAYBACK_ROUNDTRIPS, READ_AHEAD_DURING_PLAYBACK_SECONDS,
|
||||
};
|
||||
use audio_backend::Sink;
|
||||
use metadata::{AudioItem, FileFormat};
|
||||
use mixer::AudioFilter;
|
||||
use crate::audio_backend::Sink;
|
||||
use crate::metadata::{AudioItem, FileFormat};
|
||||
use crate::mixer::AudioFilter;
|
||||
|
||||
pub struct Player {
|
||||
commands: Option<std::sync::mpsc::Sender<PlayerCommand>>,
|
||||
|
|
|
@ -5,6 +5,7 @@ authors = ["Paul Liétar <paul@lietar.net>"]
|
|||
build = "build.rs"
|
||||
description="The protobuf logic for communicating with Spotify servers"
|
||||
license="MIT"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
protobuf = "2.8.1"
|
||||
|
|
Loading…
Reference in a new issue