Commit e18da5af authored by Ben Boeckel's avatar Ben Boeckel
Browse files

cargo: replace url with percent-encoding

Turns out we were just using the re-export of the `percent-encoding`
trait anyways. The `Url` type comes from `reqwest`.
parent efcb912d
...@@ -16,9 +16,9 @@ categories = ["web-programming", "api-bindings"] ...@@ -16,9 +16,9 @@ categories = ["web-programming", "api-bindings"]
hyper = { version = "~0.11.9", default-features = false } hyper = { version = "~0.11.9", default-features = false }
itertools = "~0.7" itertools = "~0.7"
log = "~0.4" log = "~0.4"
percent-encoding = "^1.0"
reqwest = "~0.8" reqwest = "~0.8"
serde_derive = "^1.0" serde_derive = "^1.0"
url = "^1.4"
chrono = { version = "~0.4", features = ["serde"] } chrono = { version = "~0.4", features = ["serde"] }
error-chain = ">= 0.9, < 0.11" error-chain = ">= 0.9, < 0.11"
......
...@@ -7,13 +7,13 @@ ...@@ -7,13 +7,13 @@
// except according to those terms. // except according to those terms.
use crates::itertools::Itertools; use crates::itertools::Itertools;
use crates::percent_encoding::{PATH_SEGMENT_ENCODE_SET, percent_encode};
use crates::reqwest::{Client, Method, RequestBuilder, Url}; use crates::reqwest::{Client, Method, RequestBuilder, Url};
use crates::serde::{Deserialize, Deserializer, Serializer}; use crates::serde::{Deserialize, Deserializer, Serializer};
use crates::serde::de::Error as SerdeError; use crates::serde::de::Error as SerdeError;
use crates::serde::de::{DeserializeOwned, Unexpected}; use crates::serde::de::{DeserializeOwned, Unexpected};
use crates::serde::ser::Serialize; use crates::serde::ser::Serialize;
use crates::serde_json; use crates::serde_json;
use crates::url::percent_encoding::{PATH_SEGMENT_ENCODE_SET, percent_encode};
use error::*; use error::*;
use types::*; use types::*;
......
...@@ -33,8 +33,8 @@ mod crates { ...@@ -33,8 +33,8 @@ mod crates {
pub extern crate hyper; pub extern crate hyper;
pub extern crate itertools; pub extern crate itertools;
pub extern crate log; pub extern crate log;
pub extern crate percent_encoding;
pub extern crate reqwest; pub extern crate reqwest;
pub extern crate url;
} }
mod error; mod error;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment