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] [package]
name = "radiobrowser" name = "radiobrowser"
version = "0.4.0" version = "0.4.1"
authors = ["segler_alex <segler_alex@web.de>"] authors = ["segler_alex <segler_alex@web.de>"]
edition = "2021" edition = "2021"
license = "MIT" license = "MIT"
@ -12,14 +12,14 @@ readme = "README.md"
repository = "https://gitlab.com/radiobrowser/radiobrowser-lib-rust" repository = "https://gitlab.com/radiobrowser/radiobrowser-lib-rust"
[dependencies] [dependencies]
async-std = { version = "1.11.0", features = ["attributes", "tokio1"] } async-std = { version = "1.12.0", features = ["attributes", "tokio1"] }
async-std-resolver = "0.21.2" async-std-resolver = "0.22.0"
chrono = { version = "0.4.19", features = ["serde"], optional = true } chrono = { version = "0.4.22", features = ["serde"], optional = true }
futures = { version = "0.3.21" } futures = { version = "0.3.24" }
log = { version = "0.4.17" } log = { version = "0.4.17" }
rand = { version = "0.8.5" } rand = { version = "0.8.5" }
reqwest = { version = "0.11.10", features = ["json"] } reqwest = { version = "0.11.11", features = ["json"] }
serde = { version = "1.0.137", features = ["derive"] } serde = { version = "1.0.144", features = ["derive"] }
[features] [features]
default = ["chrono", "blocking"] default = ["chrono", "blocking"]

View file

@ -11,7 +11,7 @@ Client library for radio-browser.info and other radio-browser-rust servers
## Crate features ## Crate features
* "blocking" - support for non-async (blocking) mode * "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) ## Getting started (Blocking)
### Example: ### Example:

View file

@ -18,10 +18,8 @@ use rand::thread_rng;
use log::trace; use log::trace;
use async_std_resolver::proto::rr::RecordType; use async_std_resolver::proto::rr::RecordType;
use async_std_resolver::proto::xfer::DnsRequestOptions;
use async_std_resolver::{config, resolver}; use async_std_resolver::{config, resolver};
/// RadioBrowser client for async communication /// RadioBrowser client for async communication
/// ///
/// It uses crate:async_std /// It uses crate:async_std
@ -124,7 +122,6 @@ impl RadioBrowserAPI {
.lookup( .lookup(
"_api._tcp.radio-browser.info", "_api._tcp.radio-browser.info",
RecordType::SRV, RecordType::SRV,
DnsRequestOptions::default(),
) )
.await?; .await?;
let mut list: Vec<String> = response let mut list: Vec<String> = response