From 68acb8593b7badd4e16eb28be708b966793ff29d Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 14 Sep 2022 08:56:42 +0200 Subject: [PATCH] dependencies upgraded --- Cargo.toml | 14 +++++++------- README.md | 2 +- src/api.rs | 3 --- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f0d4988..6c62407 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "radiobrowser" -version = "0.4.0" +version = "0.4.1" authors = ["segler_alex "] edition = "2021" license = "MIT" @@ -12,14 +12,14 @@ readme = "README.md" repository = "https://gitlab.com/radiobrowser/radiobrowser-lib-rust" [dependencies] -async-std = { version = "1.11.0", features = ["attributes", "tokio1"] } -async-std-resolver = "0.21.2" -chrono = { version = "0.4.19", features = ["serde"], optional = true } -futures = { version = "0.3.21" } +async-std = { version = "1.12.0", features = ["attributes", "tokio1"] } +async-std-resolver = "0.22.0" +chrono = { version = "0.4.22", features = ["serde"], optional = true } +futures = { version = "0.3.24" } log = { version = "0.4.17" } rand = { version = "0.8.5" } -reqwest = { version = "0.11.10", features = ["json"] } -serde = { version = "1.0.137", features = ["derive"] } +reqwest = { version = "0.11.11", features = ["json"] } +serde = { version = "1.0.144", features = ["derive"] } [features] default = ["chrono", "blocking"] diff --git a/README.md b/README.md index 88eb961..b699e64 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Client library for radio-browser.info and other radio-browser-rust servers ## Crate features * "blocking" - support for non-async (blocking) mode -* "chrono" - return DateTime objects instead of strings +* "chrono" - return DateTime objects instead of strings ## Getting started (Blocking) ### Example: diff --git a/src/api.rs b/src/api.rs index 197c1da..4dacf3f 100644 --- a/src/api.rs +++ b/src/api.rs @@ -18,10 +18,8 @@ use rand::thread_rng; use log::trace; use async_std_resolver::proto::rr::RecordType; -use async_std_resolver::proto::xfer::DnsRequestOptions; use async_std_resolver::{config, resolver}; - /// RadioBrowser client for async communication /// /// It uses crate:async_std @@ -124,7 +122,6 @@ impl RadioBrowserAPI { .lookup( "_api._tcp.radio-browser.info", RecordType::SRV, - DnsRequestOptions::default(), ) .await?; let mut list: Vec = response