diff --git a/Cargo.toml b/Cargo.toml index 2839a9ff..6505327c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,11 +9,10 @@ name = "ruma-api" readme = "README.md" repository = "https://github.com/ruma/ruma-api" version = "0.4.0" - [dependencies] -futures = "0.1.14" -http = { git = "https://github.com/carllerche/http" } -serde_json = "1.0.2" +futures = "0.1.15" +http = "0.1.0" +serde_json = "1.0.3" serde_urlencoded = "0.5.1" [dev-dependencies] diff --git a/src/lib.rs b/src/lib.rs index 233dea26..319f3304 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,8 +17,6 @@ extern crate http; #[cfg(test)] extern crate ruma_identifiers; #[cfg(test)] -extern crate serde; -#[cfg(test)] #[macro_use] extern crate serde_derive; extern crate serde_json; @@ -106,7 +104,7 @@ mod tests { use std::convert::TryFrom; use futures::future::{err, ok, FutureFrom, FutureResult}; - use http::method::PUT; + use http::method::Method; use http::{Request as HttpRequest, Response as HttpResponse}; use ruma_identifiers::{RoomAliasId, RoomId}; use serde_json; @@ -122,7 +120,7 @@ mod tests { const METADATA: Metadata = Metadata { description: "Add an alias to a room.", - method: PUT, + method: Method::PUT, name: "create_alias", path: "/_matrix/client/r0/directory/room/:room_alias", rate_limited: false,