Turn child crates into rust 2018 edition

This commit is contained in:
marcelbuesing 2020-01-17 19:09:10 +01:00
parent 38d82f2dc2
commit c9147d31ab
No known key found for this signature in database
GPG key ID: 5E8C5624159F80BB
8 changed files with 13 additions and 7 deletions

View file

@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["Paul Lietar <paul@lietar.net>"] authors = ["Paul Lietar <paul@lietar.net>"]
description="The audio fetching and processing logic for librespot" description="The audio fetching and processing logic for librespot"
license="MIT" license="MIT"
edition = "2018"
[dependencies.librespot-core] [dependencies.librespot-core]
path = "../core" path = "../core"

View file

@ -1,9 +1,9 @@
use crate::range_set::{Range, RangeSet};
use byteorder::{BigEndian, ByteOrder, WriteBytesExt}; use byteorder::{BigEndian, ByteOrder, WriteBytesExt};
use bytes::Bytes; use bytes::Bytes;
use futures::sync::{mpsc, oneshot}; use futures::sync::{mpsc, oneshot};
use futures::Stream; use futures::Stream;
use futures::{Async, Future, Poll}; use futures::{Async, Future, Poll};
use range_set::{Range, RangeSet};
use std::cmp::{max, min}; use std::cmp::{max, min};
use std::fs; use std::fs;
use std::io::{self, Read, Seek, SeekFrom, Write}; use std::io::{self, Read, Seek, SeekFrom, Write};

View file

@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["Paul Lietar <paul@lietar.net>"] authors = ["Paul Lietar <paul@lietar.net>"]
description="The discovery and Spotify Connect logic for librespot" description="The discovery and Spotify Connect logic for librespot"
license="MIT" license="MIT"
edition = "2018"
[dependencies.librespot-core] [dependencies.librespot-core]
path = "../core" path = "../core"

View file

@ -5,6 +5,7 @@ authors = ["Paul Lietar <paul@lietar.net>"]
build = "build.rs" build = "build.rs"
description="The core functionality provided by librespot" description="The core functionality provided by librespot"
license="MIT" license="MIT"
edition = "2018"
[dependencies.librespot-protocol] [dependencies.librespot-protocol]
path = "../protocol" path = "../protocol"

View file

@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["Paul Lietar <paul@lietar.net>"] authors = ["Paul Lietar <paul@lietar.net>"]
description="The metadata logic for librespot" description="The metadata logic for librespot"
license="MIT" license="MIT"
edition = "2018"
[dependencies] [dependencies]
byteorder = "1.3" byteorder = "1.3"

View file

@ -4,6 +4,7 @@ version = "0.1.0"
authors = ["Sasha Hilton <sashahilton00@gmail.com>"] authors = ["Sasha Hilton <sashahilton00@gmail.com>"]
description="The audio playback logic for librespot" description="The audio playback logic for librespot"
license="MIT" license="MIT"
edition = "2018"
[dependencies.librespot-audio] [dependencies.librespot-audio]
path = "../audio" path = "../audio"

View file

@ -15,15 +15,15 @@ use crate::config::{Bitrate, PlayerConfig};
use librespot_core::session::Session; use librespot_core::session::Session;
use librespot_core::spotify_id::SpotifyId; use librespot_core::spotify_id::SpotifyId;
use audio::{AudioDecrypt, AudioFile, StreamLoaderController}; use crate::audio::{AudioDecrypt, AudioFile, StreamLoaderController};
use audio::{VorbisDecoder, VorbisPacket}; use crate::audio::{VorbisDecoder, VorbisPacket};
use audio::{ use crate::audio::{
READ_AHEAD_BEFORE_PLAYBACK_ROUNDTRIPS, READ_AHEAD_BEFORE_PLAYBACK_SECONDS, READ_AHEAD_BEFORE_PLAYBACK_ROUNDTRIPS, READ_AHEAD_BEFORE_PLAYBACK_SECONDS,
READ_AHEAD_DURING_PLAYBACK_ROUNDTRIPS, READ_AHEAD_DURING_PLAYBACK_SECONDS, READ_AHEAD_DURING_PLAYBACK_ROUNDTRIPS, READ_AHEAD_DURING_PLAYBACK_SECONDS,
}; };
use audio_backend::Sink; use crate::audio_backend::Sink;
use metadata::{AudioItem, FileFormat}; use crate::metadata::{AudioItem, FileFormat};
use mixer::AudioFilter; use crate::mixer::AudioFilter;
pub struct Player { pub struct Player {
commands: Option<std::sync::mpsc::Sender<PlayerCommand>>, commands: Option<std::sync::mpsc::Sender<PlayerCommand>>,

View file

@ -5,6 +5,7 @@ authors = ["Paul Liétar <paul@lietar.net>"]
build = "build.rs" build = "build.rs"
description="The protobuf logic for communicating with Spotify servers" description="The protobuf logic for communicating with Spotify servers"
license="MIT" license="MIT"
edition = "2018"
[dependencies] [dependencies]
protobuf = "2.8.1" protobuf = "2.8.1"