Fix build on Cargo 1.48

This commit is contained in:
Roderick van Domburg 2021-12-08 20:44:24 +01:00
parent f74c574c9f
commit 33620280f5
No known key found for this signature in database
GPG key ID: A9EF5222A26F0451
4 changed files with 1 additions and 52 deletions

44
Cargo.lock generated
View file

@ -213,7 +213,7 @@ dependencies = [
"libc",
"num-integer",
"num-traits",
"time 0.1.43",
"time",
"winapi",
]
@ -237,17 +237,6 @@ dependencies = [
"libloading 0.7.2",
]
[[package]]
name = "colored"
version = "1.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4ffc801dacf156c5854b9df4f425a626539c3a6ef7893cc0c5084a23f0b6c59"
dependencies = [
"atty",
"lazy_static",
"winapi",
]
[[package]]
name = "combine"
version = "4.6.2"
@ -1316,7 +1305,6 @@ dependencies = [
"rand",
"serde_json",
"sha-1",
"simple_logger",
"thiserror",
"tokio",
]
@ -2297,19 +2285,6 @@ dependencies = [
"libc",
]
[[package]]
name = "simple_logger"
version = "1.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "205596cf77a15774e5601c5ef759f4211ac381c0855a1f1d5e24a46f60f93e9a"
dependencies = [
"atty",
"colored",
"log",
"time 0.3.5",
"winapi",
]
[[package]]
name = "slab"
version = "0.4.5"
@ -2465,23 +2440,6 @@ dependencies = [
"winapi",
]
[[package]]
name = "time"
version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41effe7cfa8af36f439fac33861b66b049edc6f9a32331e2312660529c1c24ad"
dependencies = [
"itoa",
"libc",
"time-macros",
]
[[package]]
name = "time-macros"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "25eb0ca3468fc0acc11828786797f6ef9aa1555e4a211a60d64cc8e4d1be47d6"
[[package]]
name = "tinyvec"
version = "1.5.1"

View file

@ -33,7 +33,6 @@ version = "0.3.1"
[dev-dependencies]
futures = "0.3"
hex = "0.4"
simple_logger = "1.11"
tokio = { version = "1.0", features = ["macros", "rt"] }
[features]

View file

@ -1,15 +1,9 @@
use futures::StreamExt;
use librespot_discovery::DeviceType;
use sha1::{Digest, Sha1};
use simple_logger::SimpleLogger;
#[tokio::main(flavor = "current_thread")]
async fn main() {
SimpleLogger::new()
.with_level(log::LevelFilter::Debug)
.init()
.unwrap();
let name = "Librespot";
let device_id = hex::encode(Sha1::digest(name.as_bytes()));

View file

@ -7,8 +7,6 @@
//! This library uses mDNS and DNS-SD so that other devices can find it,
//! and spawns an http server to answer requests of Spotify clients.
#![warn(clippy::all, missing_docs, rust_2018_idioms)]
mod server;
use std::borrow::Cow;