dependencies upgraded

This commit is contained in:
Alex 2022-09-14 08:56:42 +02:00
parent 7e4a60c28a
commit 68acb8593b
3 changed files with 8 additions and 11 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "radiobrowser"
version = "0.4.0"
version = "0.4.1"
authors = ["segler_alex <segler_alex@web.de>"]
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"]

View file

@ -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<UTC> objects instead of strings
* "chrono" - return DateTime objects instead of strings
## Getting started (Blocking)
### Example:

View file

@ -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<String> = response