Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
- base64 0.6.0 -> 0.13.0
- error-chain 0.10.0 -> 0.12.4
- regex 0.2.3 -> 1.4.5
- serde-xml-rs 0.2.1 -> 0.4.1
- serde_bytes 0.10.2 -> 0.11.5
- xml-rs 0.6.1 -> 0.8.3
  • Loading branch information
taiki-e committed Mar 29, 2021
1 parent ac11326 commit 7f75c94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ repository = "https://github.com/adnanademovic/xml-rpc-rs"
version = "0.0.12"

[dependencies]
base64 = "0.6.0"
error-chain = "0.10.0"
base64 = "0.13.0"
error-chain = "0.12.4"
futures = "0.1.14"
hyper = "0.10.15"
lazy_static = "1.0.0"
regex = "0.2.3"
regex = "1.4.5"
serde = "1.0.11"
serde-xml-rs = "0.2.1"
serde_bytes = "0.10.2"
serde-xml-rs = "0.4.1"
serde_bytes = "0.11.5"
serde_derive = "1.0.11"
xml-rs = "0.6.1"
xml-rs = "0.8.3"
rouille = "3.0.0"
8 changes: 4 additions & 4 deletions src/xmlfmt/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use super::error::{Result, ResultExt};
use super::{Call, Fault, Response, Value};
use base64;
use regex::Regex;
use serde_xml_rs::deserialize;
use serde_xml_rs::from_reader;
use std;
use std::collections::HashMap;

Expand All @@ -27,7 +27,7 @@ pub fn xml<T: std::io::Read>(mut r: T) -> Result<Value> {
let mut content = String::new();
r.read_to_string(&mut content)
.chain_err(|| "Failed to read data source.")?;
let data: XmlValue = deserialize(std::io::Cursor::new(wrap_in_string(content)))
let data: XmlValue = from_reader(std::io::Cursor::new(wrap_in_string(content)))
.chain_err(|| "Failed to parse XML-RPC data.")?;
data.into()
}
Expand All @@ -36,7 +36,7 @@ pub fn call<T: std::io::Read>(mut r: T) -> Result<Call> {
let mut content = String::new();
r.read_to_string(&mut content)
.chain_err(|| "Failed to read data source.")?;
let data: XmlCall = deserialize(std::io::Cursor::new(wrap_in_string(content)))
let data: XmlCall = from_reader(std::io::Cursor::new(wrap_in_string(content)))
.chain_err(|| "Failed to parse XML-RPC call.")?;
data.into()
}
Expand All @@ -45,7 +45,7 @@ pub fn response<T: std::io::Read>(mut r: T) -> Result<Response> {
let mut content = String::new();
r.read_to_string(&mut content)
.chain_err(|| "Failed to read data source.")?;
let data: XmlResponse = deserialize(std::io::Cursor::new(wrap_in_string(content)))
let data: XmlResponse = from_reader(std::io::Cursor::new(wrap_in_string(content)))
.chain_err(|| "Failed to parse XML-RPC response.")?;
data.into()
}
Expand Down

0 comments on commit 7f75c94

Please sign in to comment.